Skip to content

Commit 796b1ea

Browse files
committed
updating output setup.py
1 parent 94a9e05 commit 796b1ea

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

epanet_python/output/setup.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,24 @@
2424
microlib_name = 'epanet.output'
2525

2626
setup(
27-
name = microlib_name,
27+
name = 'epanet.output',
2828
version = "0.1.2a0",
2929
ext_modules = [
3030
Extension("epanet.output._output",
31+
sources = ['epanet/output/output_wrap.c'],
3132
include_dirs = ['epanet/output'],
3233
libraries = ['epanet-output'],
3334
library_dirs = ['epanet/output'],
34-
sources = ['epanet/output/output.i'],
35-
swig_opts=['-py3'],
3635
language = 'C'
3736
)
3837
],
38+
39+
# tox can't find swmm module at test time unless namespace is declared
3940
namespace_packages=['epanet'],
40-
packages = {microlib_name},
41+
42+
packages = {'epanet.output'},
4143
py_modules = ['output'],
42-
# include_package_data=True
43-
package_data = {microlib_name:['*epanet-output.dll', '*epanet-output.so']},
44+
package_data = {'epanet.output':['*epanet-output.dll', '*epanet-output.so']},
4445

45-
# install_requires = []
46+
zip_safe=False,
4647
)

0 commit comments

Comments
 (0)