|
1 | 1 | from setuptools import setup |
2 | 2 | from setuptools.command.install import install |
3 | 3 |
|
| 4 | + |
4 | 5 | class PostInstallCommand(install): |
5 | 6 | """Post-installation for installation mode.""" |
| 7 | + |
6 | 8 | def run(self): |
7 | 9 | ''' |
8 | 10 | Write downloading process here |
9 | 11 | mv target .so file into `py_sourcemap/py_sourcemap.so` |
10 | 12 | ''' |
11 | 13 | install.run(self) |
12 | 14 |
|
| 15 | + |
13 | 16 | install_requires = [] |
14 | 17 | tests_require = install_requires + ['nose'] |
15 | 18 |
|
16 | 19 | setup( |
17 | | - name='py-sourcemap', |
18 | | - version='0.1', |
19 | | - packages=['py_sourcemap'], |
20 | | - classifiers=[ |
21 | | - 'Development Status :: 4 - Beta', |
22 | | - 'Environment :: Console', |
23 | | - 'Environment :: Web Environment', |
24 | | - 'Intended Audience :: Developers', |
25 | | - 'Operating System :: MacOS :: MacOS X', |
26 | | - 'Operating System :: Microsoft :: Windows', |
27 | | - 'Operating System :: POSIX', |
28 | | - 'Programming Language :: Python', |
29 | | - 'Programming Language :: Rust', |
30 | | - ], |
31 | | - install_requires=install_requires, |
32 | | - tests_require=tests_require, |
33 | | - test_suite='nose.collector', |
34 | | - cmdclass={ |
35 | | - 'install': PostInstallCommand, |
36 | | - }, |
37 | | - # rust extensions are not zip safe, just like C-extensions. |
38 | | - zip_safe=False |
39 | | -) |
| 20 | + name='py-sourcemap', |
| 21 | + version='0.1', |
| 22 | + packages=['py_sourcemap'], |
| 23 | + classifiers=[ |
| 24 | + 'Development Status :: 4 - Beta', |
| 25 | + 'Environment :: Console', |
| 26 | + 'Environment :: Web Environment', |
| 27 | + 'Intended Audience :: Developers', |
| 28 | + 'Operating System :: MacOS :: MacOS X', |
| 29 | + 'Operating System :: Microsoft :: Windows', |
| 30 | + 'Operating System :: POSIX', |
| 31 | + 'Programming Language :: Python', |
| 32 | + 'Programming Language :: Rust', |
| 33 | + ], |
| 34 | + install_requires=install_requires, |
| 35 | + tests_require=tests_require, |
| 36 | + test_suite='nose.collector', |
| 37 | + cmdclass={ |
| 38 | + 'install': PostInstallCommand, |
| 39 | + }, |
| 40 | + # rust extensions are not zip safe, just like C-extensions. |
| 41 | + zip_safe=False) |
0 commit comments