Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 7b7d021

Browse files
author
Mangled Deutz
committed
Fix namespace collision
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
1 parent ab25023 commit 7b7d021

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

setup.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
import sys
1010

11-
import docker_registry.lib as lib
11+
# XXX as ugly as this looks, namespaces break terribly otherwise
12+
# import docker_registry.lib as lib
13+
execfile('./docker_registry/lib/__init__.py')
1214

1315
requirements_txt = open('./requirements.txt')
1416
requirements = [line for line in requirements_txt]
@@ -37,16 +39,17 @@
3739

3840
package_data = {'docker_registry': ['../config/*']}
3941

42+
4043
setuptools.setup(
41-
name=lib.__title__,
42-
version=lib.__version__,
43-
author=lib.__author__,
44-
author_email=lib.__email__,
45-
maintainer=lib.__maintainer__,
46-
maintainer_email=lib.__email__,
47-
url=lib.__url__,
48-
description=lib.__description__,
49-
download_url=lib.__download__,
44+
name=__title__, # noqa
45+
version=__version__, # noqa
46+
author=__author__, # noqa
47+
author_email=__email__, # noqa
48+
maintainer=__maintainer__, # noqa
49+
maintainer_email=__email__, # noqa
50+
url=__url__, # noqa
51+
description=__description__, # noqa
52+
download_url=__download__, # noqa
5053
long_description=open('./README.md').read(),
5154
namespace_packages=namespaces,
5255
packages=packages,

0 commit comments

Comments
 (0)