-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux swmm5.so no included in pypi package #133
Comments
The project will soon fully support all platforms and architectures. USEPA swmm has been exclusively built on windows with visual studio 32bit. Once we finish the regression testing, this project will formally endorse support on other platforms. We’re very very close!!! |
I missed #132, sorry. |
@lrntct, We have an issue here on the SWMM repo for Adding SWIG support to SWMM. Would you like to share some of your experience over there? |
We are going to keep the interface files inside that repo. I believe our plan is to use pip to fetch the "release" from OWA/SWMM github page, and build with SWIG. |
If I understand well, this SWIG interface will by part of OWA-SWMM and swmm will then be packaged and distributed by pypi and/or anaconda? Then pyswmm will depends on it? Is that the objective? If that so, my current work might be redundant quickly. |
@lrntct, @michaeltryby has done quite a bit with SWIG. The interface file will live with OWA-swmm but as far as I can tell, it will not be packaged independently from pyswmm. To be honest, there is a difficult line between the two repositories. Swmm we’d like it to be python agnostic as much as possible. Do you have any suggestions with the approach? We want to keep these projects simple and separate so that developers in C need not be required to learn python. As far as I know, you can Build a python extension with SWIG with and already compiled library. If we go this route, the extension swmm.pyd would simply wrap swmm.dll. |
So to answer your question; you have a great point that those contributors could be deprecated quickly. |
It might be possible to create a directory in the SWMM repo with just the necessary files to create a python package (setup.py etc.). Having a separate python package for SWMM only, with pyswmm depending on it, might be the easiest and most separate way to go. This would add minimal python code to the swmm repo. On the other hand, if you manage the build aand packaging inside the pyswmm repo, you'll need to import the swmm source code at some point, either by
If the new solution still consists in importing a binary blob inside the pyswmm repo, I don't see much benefit compared to the current situation. |
When installing pyswmm with pip, pyswmm/lib/linux/swmm5.so is not included, resulting in an OSError "cannot open shared object file: No such file or directory".
The text was updated successfully, but these errors were encountered: