Comments (12)
Don't worry, this was really overdue and I am glad we have functioning wheels now. Someone else pinged me about this via Email a couple of days go so I thought it would be good to get it done. Thanks with the glpk_build.py tip, that was really helpful. Talk to you soon.
from swiglpk.
@cdiener any clue why it is so hard to add 3.5 to the build matrix? The error is really bizarre. Test runs fine actually. https://ci.appveyor.com/project/phantomas1234/swiglpk/build/job/eyllplsdg5i53rrn
from swiglpk.
Probably some problems with some linker flags. But laready saw that you are trying with ogrisel's build. That should work...
from swiglpk.
Hmm does not seem to resolve the problem. The linker problem could also be due to the glpk.lib having been compiled with an older Visual Studio. Maybe you will also need to recompile glpk itself.
from swiglpk.
Unfortunately not https://ci.appveyor.com/project/phantomas1234/swiglpk/build/job/nmdjbdfgvturx8r2. I'd say it is probably due to glpk.lib. No clue how to compile glpk on appveyor.
Edit:
I guess conda could be an option.
from swiglpk.
In the cobrapy appveyor folder there is a build_glpk.py
that downloads, compiles and copies glpk.h
and glpk.lib
to you project directory. You could try running that one before and see whether that fixes the problems (it should since the cglpk bindings did compile fine for python 3.5).
from swiglpk.
If you want rather return swiglpk to its previous state and we'll play around in a new branch.
Some remarks:
- The 1.3.1 versions also give me import errors in all other builds.
- I think for python 3.5 Ali added the glpk.libUCRT so that should work with the old setup, however I would prefer the
build_glpk.py
pipeline which should be future-proof
from swiglpk.
There was a bug that caused the extension to not be included in the wheels (I missed to add the CustomBuild command to setup); the tests should really run on the wheel to avoid issues like that again. I'd rather not return to the original state because the whole refactoring is just due to this matthew-brett/delocate#12 unfortunately, it seems like it didn't help.
from swiglpk.
Ok, I think I finally managed to get this to work https://travis-ci.org/biosustain/swiglpk/builds/178574134 (I am pretty sure the tests are run now using the generated wheels)
from swiglpk.
Those are the fixes for manylinux right? Nice! I also send a PR with some shorter appveyor config based on the Python packaging guide, but we might also want to run the tests on the wheel there too...
from swiglpk.
mac wheels still seem to be broken (though tests on travis pass). If I install from this prerelease https://pypi.python.org/pypi?:action=display&name=swiglpk&version=1.3.2rc1 python -c "import swiglpk; print(swiglpk.glp_version())"
still doesn't work. It is a weird import issue though because python -c "import swiglpk.swiglpk as swiglpk; print(swiglpk.glp_version())"
works 🤕 This is over my head because it is just a package with swiglpk/__init__.py
that just contains from swiglpk import *
.
from swiglpk.
1.3.3rc1 works fine for me. Seems like you figured it out. I didn't mean to trigger that kind of work, sorry. But thumbs up for all the black magic in order to make it work in the end :)
from swiglpk.
Related Issues (20)
- swiglpk wheels should probably be compiled with GMP support (at least for OS X and Linux) HOT 2
- Set up automatic swiglpk releases that follow the GLPK version numbers HOT 2
- Create benchmarks for swiglpk and decide on a C interface
- memory allocated with `as_intArray` and `as_doubleArray` is never freed HOT 8
- Create wheels for python 3.7 HOT 2
- Mac support trouble
- pip install fails with Python 3.8.0 HOT 3
- pip install fails with Python 3.9.0 HOT 4
- setup.py fails to locate an existing glpk.h in /usr/include. HOT 3
- Support GLPK 5.0. HOT 4
- Update CI/CD and create a release that supports Python 3.9+ HOT 4
- Remove Python 2 support
- fails to install in python 3.10 HOT 4
- Is possible build CBC from pure python? HOT 1
- Drop i686? HOT 1
- Potential vulnerability in the C library which swiglpk depends on. Can you help upgrade to patch versions? HOT 1
- Missing SDist for 5.0.x release (x!=0) HOT 2
- Can't install swiglpk/cobrapy in Docker image HOT 4
- Should we limit builds to maintained Python versions only? HOT 1
- python3.12.0 compatibility HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiglpk.