-
Notifications
You must be signed in to change notification settings - Fork 62
Fix Python lib build #372
Comments
Part of what the ENABLE_PYTHON CMake flag does is configure this file. It looks like it's a way to run APBS indirectly using Python. It's not clear to me that this is useful. It additionally set's the following variables in the resultant .py file:
I'm not sure that the URLs are correct or not. Do we need to generate "ApbsClient.py" at all anymore? Or can we rid ourselves of some useless cruft? |
The script is a command line way to run the opal apbs service. Those URLs are definitely wrong. Fixing this would require making those configurable. Unless @sobolevnrm has a reason we should keep it around we can drop it. I've never had a user ask about it and I don't ever use it for testing. I'm not even sure if it works correctly. |
Thanks @kmonson for the info! I'm going to plan on dropping it unless @sobolevnrm pipes up to the contrary. I have CMake building apbslib.py and _apbslib.so. My question now is: should I put them in the pdb2pqr directory someplace? Or do we just point the user at them and let them move them around? |
I suppose we could copy them over to the pdb2pka directory. Sure, why not. On Tue, Nov 17, 2015 at 12:36 PM, Keith T. Star [email protected]
|
I'll see about doing just then! Thanks @kmonson. |
You should also change the error message at the top of On Tue, Nov 17, 2015 at 2:07 PM, Keith T. Star [email protected]
|
Are you sure that those web services URLs don't work any longer? This was On Tue, Nov 17, 2015 at 12:36 PM Keith T. Star [email protected]
|
The hosts in those URLs don't resolve any longer. The code that was generating the python file was pretty wonky -- I don't know if it's worked in years. We could create an issue to resurrect it all? |
That sounds like a good plan. Thanks! On Wed, Nov 18, 2015 at 5:25 AM Keith T. Star [email protected]
|
Sure, no problem. What was that code doing? Just so that I have an idea what to put in the issue. |
It allowed users to run APBS on offsite servers from the command line -- On Wed, Nov 18, 2015 at 6:12 AM Keith T. Star [email protected]
|
Ah -- gotcha. Thanks @sobolevnrm! |
…b2pka is missing the APBS python library to instruct the user how to build said library.
This works on OS X, and it will work on Linux (Ubuntu 14.04 LTS and RHEL 6.6), but requires that
This puzzles me, because I'm fairly certain that I've built the _apbslib.so file on linux without having to resort to using shared libraries. Does this present such a problem that I should dig into it? Also, @kmonson would you have time to try this out on your Windows box? You'll want to add |
Yeah, I can give it a shot. On Wed, Nov 18, 2015 at 8:00 AM, Keith T. Star [email protected]
|
Kyle tried and got: ~/workspaces/github/apbs-pdb2pqr/apbs |
This commit fixed some problems with the naming of the python library: bbcb70b Apparently .dylib does not work on OS X, and the CMake SWIG module doesn't use the OS specific extension anyway. I'll test this commit on Linux and OS X and then close the issue. |
…enable shared libraries to build the python lib on unix. Closes issue #372.
Looks good on Win32, Linux (RHEL) and OS X. |
Currently there is a CMake option, -DENABLE_PYTHON, that does not work. It errs in executing the CMakeLists.txt file in the tools subdirectory. But more than that, there is simply no CMake configuration for it in the tools/python directory.
The text was updated successfully, but these errors were encountered: