-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (26 loc) · 773 Bytes
/
setup.py
File metadata and controls
31 lines (26 loc) · 773 Bytes
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
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='v3',
description='YASK--Yet Another Stencil Kit',
url='https://github.com/intel/yask',
author='Intel Corporation',
license='MIT',
packages = ['yask'],
cmdclass={
'install': Install,
}
)