diff options
author | Michael W. Hudson <mwh@python.net> | 2002-02-19 14:15:40 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-02-19 14:15:40 (GMT) |
commit | 82d3c7da8b7ccb68b7bd93bd91bc5785a06e19c8 (patch) | |
tree | e9dee55fa34382d0ab8ae659e838d7633bbc373e /Lib/distutils/command/build_py.py | |
parent | 0970905f99a9a14563dc6b1a7b5d9f4936af2f08 (diff) | |
download | cpython-82d3c7da8b7ccb68b7bd93bd91bc5785a06e19c8.zip cpython-82d3c7da8b7ccb68b7bd93bd91bc5785a06e19c8.tar.gz cpython-82d3c7da8b7ccb68b7bd93bd91bc5785a06e19c8.tar.bz2 |
Backport theller's checkin of revision 1.35:
package_dir must be converted from the distutils path conventions to
local conventions before being used by build_py.
Fixes SF bug #509288, probably a candidate for 2.2.1
Diffstat (limited to 'Lib/distutils/command/build_py.py')
-rw-r--r-- | Lib/distutils/command/build_py.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py index 527e81d..97d094b 100644 --- a/Lib/distutils/command/build_py.py +++ b/Lib/distutils/command/build_py.py @@ -12,6 +12,7 @@ from glob import glob from distutils.core import Command from distutils.errors import * +from distutils.util import convert_path class build_py (Command): @@ -50,7 +51,10 @@ class build_py (Command): # options -- list of packages and list of modules. self.packages = self.distribution.packages self.py_modules = self.distribution.py_modules - self.package_dir = self.distribution.package_dir + self.package_dir = {} + if self.distribution.package_dir: + for name, path in self.distribution.package_dir.items(): + self.package_dir[name] = convert_path(path) # Ick, copied straight from install_lib.py (fancy_getopt needs a # type system! Hell, *everything* needs a type system!!!) |