Commit 2b7a2dd7 authored by Carsten Klein's avatar Carsten Klein Committed by Paul Ganssle

Add find_packages_ns()

This fixes GH #97 by introducing an alternate version of find_packages
that works with PEP 420 namespace packages.
parent d8f8de7f
"""Extensions to the 'distutils' for large or complex distributions"""
import os
import sys
import functools
import distutils.core
import distutils.filelist
from distutils.util import convert_path
from fnmatch import fnmatchcase
from setuptools.extern.six import PY3
from setuptools.extern.six.moves import filter, map
import setuptools.version
......@@ -17,11 +19,15 @@ from . import monkey
__metaclass__ = type
__all__ = [
'setup', 'Distribution', 'Feature', 'Command', 'Extension', 'Require',
'find_packages',
'find_packages'
]
if PY3:
__all__.append('find_packages_ns')
__version__ = setuptools.version.__version__
bootstrap_install_from = None
......@@ -111,6 +117,9 @@ class PEP420PackageFinder(PackageFinder):
find_packages = PackageFinder.find
if PY3:
find_packages_ns = PEP420PackageFinder.find
def _install_setup_requires(attrs):
# Note: do not use `setuptools.Distribution` directly, as
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment