diff options
author | Yury Selivanov <yury@magic.io> | 2018-03-30 16:30:58 -0400 |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2018-03-30 17:11:05 -0400 |
commit | 3fc4b1e77056619e434ec324aed6545e26da2f28 (patch) | |
tree | 964fffb52124febe1678afe985c47c87825b1214 /setup.py | |
download | immutables-3fc4b1e77056619e434ec324aed6545e26da2f28.tar.gz immutables-3fc4b1e77056619e434ec324aed6545e26da2f28.zip |
Initial commit
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a190cd4 --- /dev/null +++ b/setup.py @@ -0,0 +1,38 @@ +import platform +import setuptools + + +CFLAGS = ['-O2'] + +if platform.uname().system != 'Windows': + CFLAGS.extend(['-fsigned-char', '-Wall', '-Wsign-compare', '-Wconversion']) + + +setuptools.setup( + name='immutables', + description='Immutable Collections', + classifiers=[ + 'License :: OSI Approved :: Apache Software License', + 'Intended Audience :: Developers', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.6', + 'Operating System :: POSIX', + 'Operating System :: MacOS :: MacOS X', + 'Operating System :: Microsoft :: Windows', + ], + platforms=['POSIX'], + author='MagicStack Inc', + author_email='hello@magic.io', + url='https://github.com/MagicStack/immutables', + license='Apache License, Version 2.0', + packages=['immutables'], + provides=['immutables'], + include_package_data=True, + ext_modules=[ + setuptools.Extension( + "immutables._map", + ["immutables/_map.c"], + extra_compile_args=CFLAGS) + ], + test_suite='tests.suite', +) |