forked from intel/yask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (28 loc) · 869 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import subprocess
import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
class Install(install):
"""Customized setuptools install command - builds protos on install."""
def run(self):
protoc_command = ['make', 'compiler']
if subprocess.call(protoc_command) != 0:
sys.exit(-1)
protoc_command = ['make', 'compiler-api']
if subprocess.call(protoc_command) != 0:
sys.exit(-1)
install.run(self)
setup(
name='yask',
version='v2-alpha',
description='YASK--Yet Another Stencil Kernel: '
'A framework to facilitate exploration of the HPC '
'stencil-performance design space',
url='https://01.org/yask',
author='Intel Corporation',
license='MIT',
packages = ['yask'],
cmdclass={
'install': Install,
}
)