Skip to content

Commit f7378ed

Browse files
committed
resolve packaging problems leading to warnings
closes #3
1 parent e73dc05 commit f7378ed

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/ndg_httpsclient.egg-info/
22
/dist/
3+
*.pyc
4+
.eggs/

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM ubuntu:14.04
2+
RUN apt-get -yqq update && apt-get -yqq install python-pip python-dev libffi-dev libxmlsec1-openssl libssl-dev
3+
WORKDIR /app/
4+
ADD . /app/
5+
RUN pip install -e .
6+
CMD ["python", "setup.py", "test"]

ndg/__init__.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
try:
2-
import pkg_resources
3-
pkg_resources.declare_namespace(__name__)
4-
except ImportError:
5-
# don't prevent use if pkg_resources isn't installed
6-
from pkgutil import extend_path
7-
__path__ = extend_path(__path__, __name__)
8-
9-
import modulefinder
10-
for p in __path__:
11-
modulefinder.AddPackagePath(__name__, p)
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
long_description=_long_description,
128128
license='BSD - See ndg/httpsclient/LICENCE file for details',
129129
packages=find_packages(),
130-
namespace_packages=NAMESPACE_PKGS,
130+
# namespace_packages=NAMESPACE_PKGS,
131131
# package_dir={'ndg.httpsclient': 'ndg/httpsclient'},
132132
package_data={
133133
'ndg.httpsclient': [

0 commit comments

Comments
 (0)