File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ set OUTPUT_PATH=\epanet_python\output\epanet\output
15
15
16
16
mkdir buildlib
17
17
cd buildlib
18
- git clone --branch=dev-swig-redux https://github.com/michaeltryby/EPANET.git
18
+ git clone --branch=dev https://github.com/michaeltryby/EPANET.git
19
19
cd epanet
20
20
21
21
22
22
mkdir buildprod
23
23
cd buildprod
24
- cmake -G" Visual Studio 14 2015 Win64" -DBUILD_TESTS=0 ..
24
+ cmake -G" Visual Studio 14 2015 Win64" -DBUILD_PY_LIB=ON - DBUILD_TESTS=OFF ..
25
25
cmake --build . --config Release
26
26
27
27
28
- copy /Y .\bin\Release\epanet2 .dll %PROJECT_PATH% \%TOOLKIT_PATH%
29
- copy /Y .\lib\Release\epanet2 .lib %PROJECT_PATH% \%TOOLKIT_PATH%
28
+ copy /Y .\bin\Release\epanet_py .dll %PROJECT_PATH% \%TOOLKIT_PATH%
29
+ copy /Y .\lib\Release\epanet_py .lib %PROJECT_PATH% \%TOOLKIT_PATH%
30
30
copy /Y ..\include\*.h %PROJECT_PATH% \%TOOLKIT_PATH%
31
31
32
32
copy /Y .\bin\Release\epanet-output.dll %PROJECT_PATH% \%OUTPUT_PATH%
Original file line number Diff line number Diff line change 23
23
24
24
setup (
25
25
name = microlib_name ,
26
- version = "0.0.2a0 " ,
26
+ version = "0.0.3a0 " ,
27
27
ext_modules = [
28
28
Extension ("epanet.toolkit._toolkit" ,
29
29
sources = ['epanet/toolkit/toolkit.i' ],
30
30
swig_opts = ['-py3' ],
31
31
include_dirs = ['epanet/toolkit' ],
32
32
library_dirs = ['epanet/toolkit' ],
33
- libraries = ['epanet2' ],
34
- extra_compile_args = ["/D WITH_GENX" ],
33
+ libraries = ['epanet_py' ],
35
34
language = 'C'
36
35
)
37
36
],
38
37
namespace_packages = ['epanet' ],
39
38
packages = {microlib_name },
40
39
py_modules = ['toolkit' ],
41
40
# include_package_data=True
42
- package_data = {microlib_name :['*epanet2 .dll' , '*epanet2 .so' ]},
41
+ package_data = {microlib_name :['*epanet_py .dll' , '*epanet_py .so' ]},
43
42
44
43
)
You can’t perform that action at this time.
0 commit comments