Code Monkey home page Code Monkey logo

Comments (6)

cielavenir avatar cielavenir commented on May 20, 2024 1

thank you for comment, fixed author field cielavenir@f945d57

from python-isal.

rhpvorderman avatar rhpvorderman commented on May 20, 2024

That would complicate things, as the prefix for the included ISA-L source needs to be build somewhere. Using the temporary directory is the best option. The temporary directory is obtained with python's tempfile module. So you can also run TMPDIR=/path/to/somewhere pip install isal to use another path.

Also wheels are provided for most platforms and python versions, so a build of ISA-L should not be triggered. Which platform are you building on? Did you upgrade to the latest version of pip?

from python-isal.

cielavenir avatar cielavenir commented on May 20, 2024

ok, building in another directory worked (sorry my machine has /tmp exec and a colleague of mine has /tmp noexec so I needed to test using yet another directory than /tmp).

  • For a reason I have to use Python2, so I need to strip type annotations. Of course I know it is not something to be merged, but that also means wheels are not expected.
  • We use build orchestration system, so passing TMPDIR is a little difficult.

It could also be possible to fallback to Makefile.unx only when permission denied happens.

from python-isal.

cielavenir avatar cielavenir commented on May 20, 2024

well, I just thought TMPDIR issue is out of the scope to backporting to Python2, so I felt like there could still be some people having the same issue.

meanwhile it is also true that I can keep my autogenless setup.py for my Py2 fork.

maybe please close this. sorry for confusion.

from python-isal.

rhpvorderman avatar rhpvorderman commented on May 20, 2024

For a reason I have to use Python2, so I need to strip type annotations. Of course I know it is not something to be merged, but that also means wheels are not expected.

When I started this project (september 2020) Python2 was officially not supported anymore for 9 months already. Type annotations are also not supported for python 3.4 and lower. This projects supports 3.6 and higher, partly because these are still supported, but also because it makes my life easier. (F-strings hurray!) Therefore I won't be supporting python 2.

I am not going to have python2 packages under the isal repository for the aforementioned reason. But since you already have a py2 fork, maybe you could create your own isal-py2 package on PyPI and push wheels there? Using cibuildwheel that should be quite doable. Please have a rigorous reading trough setup.py and

  • add python2 dependencies in setup_requires
  • Change the contact email to yours. I don't want any python2 support requests ;-)
  • Change the description to clarify that this is a fork that tracks the isal package.

Also the README will need some modificiation where all the references in the shield images should point specifically to python-isal-py2 and not this repository.

Anyway. Quite some work to maintain the port and build a wheel. But maybe less intensive than hacking all the individual machines to make it install?

from python-isal.

cielavenir avatar cielavenir commented on May 20, 2024

closing

from python-isal.

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.