aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authoragronholm <none@none>2009-10-20 01:56:50 +0300
committeragronholm <none@none>2009-10-20 01:56:50 +0300
commitb2c722a3a23d81a02ec0bd58b91c26e7b9b2fedf (patch)
tree65d128ef2d0ce45838f6d72eb33cdde1d1306171 /setup.py
parent7572da337f94c328f00100dc55f494c9d811f4bd (diff)
parente6e0e5add9321df50c5da9ee2f1650740024c8ed (diff)
downloadexternal_python_setuptools-b2c722a3a23d81a02ec0bd58b91c26e7b9b2fedf.tar.gz
external_python_setuptools-b2c722a3a23d81a02ec0bd58b91c26e7b9b2fedf.tar.bz2
external_python_setuptools-b2c722a3a23d81a02ec0bd58b91c26e7b9b2fedf.zip
Merge with aadeea4644ffb5e0ba24865151dd9315fb961cf1
--HG-- branch : distribute extra : rebase_source : 71d476c0c54e5cb49de8308f658983f6343bb2d3
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/setup.py b/setup.py
index cdc28e65..e57cf5cf 100755
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,6 @@
"""Distutils setup file, used to install or test 'setuptools'"""
import sys
import os
-import platform
src_root = None
if sys.version_info >= (3,):
@@ -40,42 +39,8 @@ SETUP_COMMANDS = d['__all__']
VERSION = "0.6.7"
from setuptools import setup, find_packages
-from setuptools.command.build_py import build_py as _build_py
scripts = []
-# specific command that is used to generate windows .exe files
-class build_py(_build_py):
- def build_package_data(self):
- """Copy data files into build directory"""
- lastdir = None
- is_64 = platform.architecture()[0] == '64bit'
-
- for package, src_dir, build_dir, filenames in self.data_files:
- for filename in filenames:
- target = os.path.join(build_dir, filename)
- self.mkpath(os.path.dirname(target))
- srcfile = os.path.join(src_dir, filename)
- outf, copied = self.copy_file(srcfile, target)
-
- # creating cli.exe and gui.exe
- if filename in ('gui-32.exe', 'cli-32.exe') and not is_64:
- exe_target = os.path.join(build_dir, filename.replace('-32.exe', '.exe'))
- self.copy_file(srcfile, exe_target)
-
- if filename in ('gui-64.exe', 'cli-64.exe') and is_64:
- exe_target = os.path.join(build_dir, filename.replace('-64.exe', '.exe'))
- self.copy_file(srcfile, exe_target)
-
- srcfile = os.path.abspath(srcfile)
-
- # avoid a bootstrapping issue with easy_install -U (when the
- # previous version doesn't have convert_2to3_doctests)
- if not hasattr(self.distribution, 'convert_2to3_doctests'):
- return
-
- if copied and srcfile in self.distribution.convert_2to3_doctests:
- self.__doctests_2to3.append(outf)
-
# if we are installing Distribute using "python setup.py install"
# we need to get setuptools out of the way
def _easy_install_marker():
@@ -182,7 +147,6 @@ dist = setup(
Topic :: System :: Systems Administration
Topic :: Utilities""".splitlines() if f.strip()],
scripts = scripts,
- cmdclass = {'build_py': build_py}
)
if _being_installed():