Ticket #15771: patch-setup.py

File patch-setup.py, 1.1 KB (added by tom.duck@…, 16 years ago)

patch file for setup.py

Line 
1--- setup.py.orig       2008-06-29 14:11:30.000000000 -0300
2+++ setup.py    2008-06-29 14:13:43.000000000 -0300
3@@ -7,12 +7,8 @@
4 from os.path import exists, expanduser
5 
6 # Using ``setuptools`` enables lots of goodies, such as building eggs.
7-if 'FORCE_SETUPTOOLS' in os.environ:
8-    from setuptools import setup, find_packages
9-    has_setuptools = True
10-else:
11-    from distutils.core import setup
12-    has_setuptools = False
13+from setuptools import setup, find_packages
14+has_setuptools = True
15 
16 from distutils.core     import Extension
17 from distutils.dep_util import newer
18@@ -431,9 +427,9 @@
19     # Entry points for automatic creation of scripts.
20     setuptools_kwargs['entry_points'] = {
21         'console_scripts': [
22-            'ptdump = tables.scripts.ptdump:main',
23-            'ptrepack = tables.scripts.ptrepack:main',
24-            'nctoh5 = tables.netcdf3.scripts.nctoh5:main [netCDF]',
25+            'ptdump-py25 = tables.scripts.ptdump:main',
26+            'ptrepack-py25 = tables.scripts.ptrepack:main',
27+            'nctoh5-py25 = tables.netcdf3.scripts.nctoh5:main [netCDF]',
28             ],
29         }
30     # Test suites.