Skip to content

Commit c6d636e

Browse files
committed
Updates to install from sdist package
1 parent cb7b11a commit c6d636e

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
recursive-include epanet_python *.i *.h *.dll *.lib
3+
graft epanet_python
4+
prune epanet_python/output/build
5+
prune epanet_python/toolkit/build

setup.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55

66
from six import iteritems
77

8-
from setuptools import setup
8+
from setuptools import setup, find_namespace_packages
99
from setuptools.command.develop import develop
1010
from setuptools.command.install import install
11+
#from setuptools.command.build import build
1112

1213
import sys
1314
import subprocess
@@ -53,6 +54,11 @@ def run(self):
5354
install.run(self)
5455

5556

57+
#class BuildCmd(build):
58+
# """ Add custom steps for the build command """
59+
# def run(self):
60+
# print("building all microlibs")
61+
5662
setup(
5763
name=PACKAGE_NAME,
5864
version="0.1.0",
@@ -63,8 +69,12 @@ def run(self):
6369
classifiers=[
6470
'Private :: Do Not Upload to pypi server',
6571
],
72+
package_dir={'': 'epanet_python'},
73+
include_package_data=True,
74+
packages=find_namespace_packages(where='epanet_python'),
6675
cmdclass={
6776
'install': InstallCmd,
6877
'develop': DevelopCmd
78+
# 'build': BuildCmd
6979
},
7080
)

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ deps =
1010
pytest
1111
numpy
1212
commands =
13-
python -m pip install -e .
1413
python -m pytest --color=yes epanet_python -s

0 commit comments

Comments
 (0)