diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-11-06 15:54:07 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-11-06 15:54:07 -0500 |
commit | 14827711f669a830190313951ab5aef7b71ab2c6 (patch) | |
tree | 761891104b22f1f4201bc8e5157ed2aa2055cdbd | |
parent | a64fcd4860742158669474a9107921345bbc65c1 (diff) | |
download | external_python_setuptools-14827711f669a830190313951ab5aef7b71ab2c6.tar.gz external_python_setuptools-14827711f669a830190313951ab5aef7b71ab2c6.tar.bz2 external_python_setuptools-14827711f669a830190313951ab5aef7b71ab2c6.zip |
Install -nspkg.pth under develop command. Fixes namespace package support as long as __init__.py is omitted.
-rwxr-xr-x | setuptools/command/develop.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/command/develop.py b/setuptools/command/develop.py index 3eb86120..8de24fd7 100755 --- a/setuptools/command/develop.py +++ b/setuptools/command/develop.py @@ -9,10 +9,11 @@ from setuptools.extern import six from pkg_resources import Distribution, PathMetadata, normalize_path from setuptools.command.easy_install import easy_install +from setuptools import namespaces import setuptools -class develop(easy_install): +class develop(namespaces.DevelopInstaller, easy_install): """Set up package for development""" description = "install package in 'development mode'" @@ -123,6 +124,8 @@ class develop(easy_install): self.easy_install(setuptools.bootstrap_install_from) setuptools.bootstrap_install_from = None + self.install_namespaces() + # create an .egg-link in the installation dir, pointing to our egg log.info("Creating %s (link to %s)", self.egg_link, self.egg_base) if not self.dry_run: |