bradfordboyle / pyglpk

Updated fork of T. Finley's PyGLPK module
GNU General Public License v3.0
14 stars 11 forks source link

Add user config for custom GLPK location #21

Closed bradfordboyle closed 7 years ago

bradfordboyle commented 7 years ago

This commit add user configuration to "setup.py" that allows for custom GLPK install location. The user can either specify --with-glpk=<path> or GLPK=<path> environment variable. If both are specified, the command line option takes precedence. In both cases, it is assumed that glpk is not located on the C compiler's library path and rpath is set.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 92.16% when pulling 5e7d6720aa24bcf0e771ce7bc131061580747f84 on cutomize-glpk-location into 97716fe74b87731467a23f6060a8f67fe032a6b4 on master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 92.16% when pulling 5e7d6720aa24bcf0e771ce7bc131061580747f84 on cutomize-glpk-location into 97716fe74b87731467a23f6060a8f67fe032a6b4 on master.

anton-molyboha commented 7 years ago

Thanks a lot -- and sorry for a slow response.

I have tested both options on my system: make GLPK=... ; make install and python3 --with-glpk=... install

Both work for me (i.e. pass the tests in the tests subdir)