Giter Club home page Giter Club logo

Comments (12)

phantomas1234 avatar phantomas1234 commented on June 1, 2024 1

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.

phantomas1234 avatar phantomas1234 commented on June 1, 2024

@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.

cdiener avatar cdiener commented on June 1, 2024

Probably some problems with some linker flags. But laready saw that you are trying with ogrisel's build. That should work...

from swiglpk.

cdiener avatar cdiener commented on June 1, 2024

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.

phantomas1234 avatar phantomas1234 commented on June 1, 2024

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.

cdiener avatar cdiener commented on June 1, 2024

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.

cdiener avatar cdiener commented on June 1, 2024

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.

phantomas1234 avatar phantomas1234 commented on June 1, 2024

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.

phantomas1234 avatar phantomas1234 commented on June 1, 2024

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.

cdiener avatar cdiener commented on June 1, 2024

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.

phantomas1234 avatar phantomas1234 commented on June 1, 2024

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.

cdiener avatar cdiener commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.