[Python-checkins] r45415 - sandbox/trunk/setuptools/setuptools/command/build_py.py (original) (raw)

phillip.eby python-checkins at python.org
Sat Apr 15 07:32:17 CEST 2006


Author: phillip.eby Date: Sat Apr 15 07:32:16 2006 New Revision: 45415

Modified: sandbox/trunk/setuptools/setuptools/command/build_py.py Log: Trap absolute paths given as package_dirs, which foul up things terribly.

Modified: sandbox/trunk/setuptools/setuptools/command/build_py.py

--- sandbox/trunk/setuptools/setuptools/command/build_py.py (original) +++ sandbox/trunk/setuptools/setuptools/command/build_py.py Sat Apr 15 07:32:16 2006 @@ -84,18 +84,20 @@ self.manifest_files = mf = {} if not self.distribution.include_package_data: return

     src_dirs = {}
     for package in self.packages or ():
         # Locate package source directory

@@ -119,8 +121,6 @@ for filename in filenames ]

@@ -177,19 +177,19 @@ return [f for f in files if f not in bad]

+"""Error: setup script specifies an absolute path: + + %s + +setup() arguments must always be /-separated paths relative to the +setup.py directory, never absolute paths. +""" % path + )


More information about the Python-checkins mailing list