[PATCH 1 of 7] setup: subclass distribution instead of overwriting original
Simon Heimberg
simohe at besonet.ch
Tue Nov 8 16:36:07 CST 2011
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1311393459 -7200
# Node ID cb430f947900c77f79e9442ef65d5c80dd09657c
# Parent fd9c2cec84bb063a32a80a2f23307ccd876b700c
setup: subclass distribution instead of overwriting original
diff -r fd9c2cec84bb -r cb430f947900 setup.py
--- a/setup.py Son Sep 11 17:48:11 2011 +0200
+++ b/setup.py Sam Jul 23 05:57:39 2011 +0200
@@ -221,9 +221,13 @@
# when build_py is run next.
build.sub_commands.insert(0, ('build_mo', None))
-Distribution.pure = 0
-Distribution.global_options.append(('pure', None, "use pure (slow) Python "
- "code instead of C extensions"))
+class hgdist(Distribution):
+ pure = 0
+
+ global_options = Distribution.global_options + \
+ [('pure', None, "use pure (slow) Python "
+ "code instead of C extensions"),
+ ]
class hgbuildext(build_ext):
@@ -435,6 +439,7 @@
data_files=datafiles,
package_data=packagedata,
cmdclass=cmdclass,
+ distclass=hgdist,
options=dict(py2exe=dict(packages=['hgext', 'email']),
bdist_mpkg=dict(zipdist=True,
license='COPYING',
More information about the Mercurial-devel
mailing list