forked from microsoft/ivy
-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
49 lines (44 loc) · 2.03 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import codecs
import os
import platform
from setuptools import setup, find_packages
from setuptools.dist import Distribution
# Workaround for bdist_wheel so that we get a platform-specific package
class BinaryDistribution(Distribution):
"""Distribution which always forces a binary package with platform name"""
def has_ext_modules(foo):
return True
# Get the long description from the README file
here = os.path.abspath(os.path.dirname(__file__))
try:
with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
except:
# This happens when running tests
long_description = None
setup(name='ms_ivy',
python_requires='>=3.10',
version='1.8.25',
description='IVy verification tool',
long_description=long_description,
url='https://github.com/microsoft/ivy',
author='IVy team',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
package_data=({'ivy':['include/*/*.ivy','include/*/*.h','include/*.h','lib/*.dll','lib/*.lib','z3/*.dll']}
if platform.system() == 'Windows' else
{'ivy':['include/*/*.ivy','include/*/*.h','include/*.h','lib/*.dylib','lib/*.a','z3/*.dylib','bin/*']}
if platform.system() == 'Darwin' else
{'ivy':['include/*/*.ivy','include/*/*.h','include/*.h','lib/*.so','lib/*.a','z3/*.so','ivy2/s3/ivyc_s3','bin/*']}),
install_requires=[
'pyparsing',
'ply',
'tarjan',
'pydot',
] + (['applescript'] if platform.system() == 'Darwin' else []),
entry_points = {
'console_scripts': ['ivy=ivy.ivy:main','ivy_check=ivy.ivy_check:main','ivy_to_cpp=ivy.ivy_to_cpp:main','ivy_show=ivy.ivy_show:main','ivy_ev_viewer=ivy.ivy_ev_viewer:main','ivyc=ivy.ivy_to_cpp:ivyc','ivy_to_md=ivy.ivy_to_md:main','ivy_libs=ivy.ivy_libs:main','ivy_shell=ivy.ivy_shell:main','ivy_launch=ivy.ivy_launch:main'],
},
zip_safe=False,
distclass=BinaryDistribution)