summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py38
1 files changed, 4 insertions, 34 deletions
diff --git a/setup.py b/setup.py
index 9d15793c..dd31f13a 100755
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ if sys.version_info >= (3,):
manifest_file.close()
dir_util.create_tree(tmp_src, fl.files)
outfiles_2to3 = []
- dist_script = os.path.join("build", "src", "distribute_setup.py")
+ dist_script = os.path.join("build", "src", "ez_setup.py")
for f in fl.files:
outf, copied = file_util.copy_file(f, os.path.join(tmp_src, f), update=1)
if copied and outf.endswith(".py") and outf != dist_script:
@@ -82,7 +82,7 @@ class build_py(_build_py):
class test(_test):
"""Specific test class to avoid rewriting the entry_points.txt"""
def run(self):
- entry_points = os.path.join('distribute.egg-info', 'entry_points.txt')
+ entry_points = os.path.join('setuptools.egg-info', 'entry_points.txt')
if not os.path.exists(entry_points):
_test.run(self)
@@ -107,32 +107,6 @@ class test(_test):
f.close()
-# if we are installing Distribute using "python setup.py install"
-# we need to get setuptools out of the way
-def _easy_install_marker():
- return (len(sys.argv) == 5 and sys.argv[2] == 'bdist_egg' and
- sys.argv[3] == '--dist-dir' and 'egg-dist-tmp-' in sys.argv[-1])
-
-def _buildout_marker():
- command = os.environ.get('_')
- if command:
- return 'buildout' in os.path.basename(command)
-
-def _being_installed():
- if os.environ.get('DONT_PATCH_SETUPTOOLS') is not None:
- return False
- if _buildout_marker():
- # Installed by buildout, don't mess with a global setuptools.
- return False
- # easy_install marker
- if "--help" in sys.argv[1:] or "-h" in sys.argv[1:]: # Don't bother doing anything if they're just asking for help
- return False
- return 'install' in sys.argv[1:] or _easy_install_marker()
-
-if _being_installed():
- from distribute_setup import _before_install
- _before_install()
-
readme_file = open('README.txt')
# the release script adds hyperlinks to issues
if os.path.exists('CHANGES (links).txt'):
@@ -145,7 +119,7 @@ readme_file.close()
changes_file.close()
dist = setup(
- name="distribute",
+ name="setuptools",
version=VERSION,
description="Easily download, build, install, upgrade, and uninstall "
"Python packages",
@@ -154,7 +128,7 @@ dist = setup(
license="PSF or ZPL",
long_description = long_description,
keywords = "CPAN PyPI distutils eggs package management",
- url = "http://packages.python.org/distribute",
+ url = "http://pypi.python.org/pypi/setuptools",
test_suite = 'setuptools.tests',
src_root = src_root,
packages = find_packages(),
@@ -235,7 +209,3 @@ dist = setup(
""").strip().splitlines(),
scripts = scripts,
)
-
-if _being_installed():
- from distribute_setup import _after_install
- _after_install(dist)