aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-06-12 19:26:45 +0000
committerPJ Eby <distutils-sig@python.org>2005-06-12 19:26:45 +0000
commit5bf51fa29ddefee5ff82a52b9c14420f70401779 (patch)
tree53b3ec2328012ce8bbdaf858f100919f3a62b372 /setup.py
parent18b9ae1e5df8c0c141970c23c9aa0589928655c6 (diff)
downloadexternal_python_setuptools-5bf51fa29ddefee5ff82a52b9c14420f70401779.tar.gz
external_python_setuptools-5bf51fa29ddefee5ff82a52b9c14420f70401779.tar.bz2
external_python_setuptools-5bf51fa29ddefee5ff82a52b9c14420f70401779.zip
Add script installation support. Use distutils' exceptions for option
errors. Include Python version in setuptools' egg name for compatibility w/installs via easy_install. Add isdir/listdir facilities for metadata, along with support for running scripts from eggs. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041053
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 575e5feb..01f6be33 100755
--- a/setup.py
+++ b/setup.py
@@ -2,8 +2,9 @@
"""Distutils setup file, used to install or test 'setuptools'"""
VERSION = "0.4a1"
+import sys
from setuptools import setup, find_packages, Require
-from distutils.version import LooseVersion
+PYVER = sys.version[:3]
setup(
name="setuptools",
@@ -38,11 +39,10 @@ setup(
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
-
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py'],
- extra_path = ('setuptools', 'setuptools-%s.egg' % VERSION),
+ extra_path = ('setuptools', 'setuptools-%s-py%s.egg' % (VERSION,PYVER)),
classifiers = [f.strip() for f in """
Development Status :: 3 - Alpha