Skip to content

Commit

Permalink
Go back to using find_packages
Browse files Browse the repository at this point in the history
Some build services use an earlier version of `setuptools` than `40.1.0`
which doesn't contain `find_namespace_packages`. That's why I'm going
back using `find_packages` again. The `oemof` package can't contain an
`__init__.py` file so it gets listed manually. Its sub-packages MUST
contain an `__init__.py` file, though.
  • Loading branch information
gnn committed Nov 24, 2018
1 parent 958bb9b commit 82f7294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from os.path import join
from os.path import splitext

from setuptools import find_namespace_packages
from setuptools import find_packages
from setuptools import setup


Expand All @@ -36,7 +36,7 @@ def read(*names, **kwargs):
author='Stephan Günther',
author_email='gnn.code@gmail.com',
url='https://github.com/oemof/oemof-tabular',
packages=find_namespace_packages('src'),
packages=['oemof'] + ['oemof.' + p for p in find_packages('src/oemof')],
package_dir={'': 'src'},
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
include_package_data=True,
Expand Down

0 comments on commit 82f7294

Please sign in to comment.