fixing setup.py to find namespaces properly
This commit is contained in:
3
setup.py
3
setup.py
@@ -39,8 +39,9 @@ def get_packages():
|
||||
# setuptools can't do the job :(
|
||||
packages = []
|
||||
for root, dirnames, filenames in os.walk(os.path.join(HTTPRETTY_PATH, 'httpretty')):
|
||||
path = root.replace(HTTPRETTY_PATH, '').strip('/')
|
||||
if '__init__.py' in filenames:
|
||||
packages.append(".".join(os.path.split(root)).strip("."))
|
||||
packages.append(".".join(os.path.split(path)).strip("."))
|
||||
|
||||
return packages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user