aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-04-28 18:13:46 +0000
committerPJ Eby <distutils-sig@python.org>2006-04-28 18:13:46 +0000
commitdcd12bd1088713adb87cfc1344ca30b10869ae36 (patch)
tree54b2223df05a553a8418e05d6fb5c24b13f7071f
parent4e8180190bf443b6389f064886321fcdeccf6ea4 (diff)
downloadexternal_python_setuptools-dcd12bd1088713adb87cfc1344ca30b10869ae36.tar.gz
external_python_setuptools-dcd12bd1088713adb87cfc1344ca30b10869ae36.tar.bz2
external_python_setuptools-dcd12bd1088713adb87cfc1344ca30b10869ae36.zip
Backport doc fixes and 2.4-only -m safety check to 0.6 branch
--HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045791
-rwxr-xr-xEasyInstall.txt8
-rw-r--r--setuptools/command/bdist_egg.py2
2 files changed, 4 insertions, 6 deletions
diff --git a/EasyInstall.txt b/EasyInstall.txt
index 84044f1d..f2682dda 100755
--- a/EasyInstall.txt
+++ b/EasyInstall.txt
@@ -545,9 +545,7 @@ The current analysis approach is fairly conservative; it currenly looks for:
* Possible use of ``inspect`` functions that expect to manipulate source files
(e.g. ``inspect.getsource()``)
- * Any data files or C extensions (this restriction will be removed in a future
- release, once the ``pkg_resources`` runtime has been hardened for multi-user
- environments)
+ * Top-level modules that might be scripts used with ``python -m`` (Python 2.4)
If any of the above are found in the package being installed, EasyInstall will
assume that the package cannot be safely run from a zipfile, and unzip it to
@@ -782,7 +780,7 @@ Command-Line Options
EasyInstall will not actually build or install the requested projects or
their dependencies; it will just find and extract them for you. See
`Editing and Viewing Source Packages`_ above for more details.
-
+
``--build-directory=DIR, -b DIR`` (UPDATED in 0.6a1)
Set the directory used to build source packages. If a package is built
from a source distribution or checkout, it will be extracted to a
@@ -1081,7 +1079,7 @@ already have them::
[install]
install_lib = ~/py-lib
install_scripts = ~/bin
-
+
Be sure to do this *before* you try to run the ``ez_setup.py`` installation
script. Then, follow the standard `installation instructions`_, but make
sure that ``~/py-lib`` is listed in your ``PYTHONPATH`` environment variable.
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index ae94a869..7f32c369 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -393,7 +393,7 @@ def scan_module(egg_dir, base, name, stubs):
log.warn("%s: module MAY be using inspect.%s", module, bad)
safe = False
if '__name__' in symbols and '__main__' in symbols and '.' not in module:
- if get_python_version()>="2.4":
+ if sys.version[:3]=="2.4": # -m works w/zipfiles in 2.5
log.warn("%s: top-level module may be 'python -m' script", module)
safe = False
return safe