New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fork lexicon without poetry #568
Comments
In fact you can continue to use your workflow with
|
Thank you but when using
I must have missed something... |
No it is me. The shim does not cover the case of old versions of pip, just the case of Having a more recent version of pip on FreeBSD is not doable ? |
No because I use an another package manager and I don't want to use pip to avoid package management issues... |
Which package manager are you using, and which version of FreeBSD ? Maybe I can figure out something. |
Also, depending of the use case:
|
I spoke with one of the developers of the package manager |
Of course, but MacPorts maintainers need to find a solution for PEP 517 compliant packages, because more and more packages will move to I looked at MacPorts behavior, but failed to understand how a Python package is actually installed. I suppose it is something like |
I'm the port maintainer that ArtKoKo has been referring to. The mechanism MacPorts uses to install Python packages is the python PortGroup: https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/python-1.0.tcl It currently works on nearly 6k modules and packages (with a lot of double counting due to multiple Python branches). I had a look and could only find a small handful of ports that use |
@adferrand not inspired ? |
Unfortunately, it seems that trying to use pip to install python modules within MacPorts is a fool's errand. I tried building another package that lacks
given
My next step is to try to figure out if I can get PEP 517 to work. Not too optimistic. |
Hello @Schamschula, what is the version of |
@Schamschula I worked a little around this problem. I could get a similar situation where python3 -m venv venv
. venv/bin/activate
python3 -m pip uninstall --yes pkg-resources setuptools At that point, the only remaining package in the virtual environment is
Say now that you have Thanks to the PYTHONPATH=/full/path/to/venv/lib/python3.8/site-packages python3 -m pip install --no-binary :all: meshio Please note that I believe this approach would allow to inject the port of |
I currently have
I also tried building lexicon (using the recipe from py-tensorflow_estimator https://github.com/macports/macports-ports/blob/9b6fda7da756e1ea03675e0906b37e2fb7412f20/python/py-tensorflow_estimator/Portfile) In this case I get the same issue with poetry
and, yes poetry is installed:
|
MacPorts has recently added a pep517 mechanism. Thus, I've updated py-dns-lexicon to 3.5.2 for those versions of python that support it. |
This issue has come up again: https://trac.macports.org/ticket/62682 The py-dns-lexicon Portfile requires both In the above ticket it was suggested to only use |
This issue should hopefully now be fixed in the next release, following which, lexicon can be packaged in the same way as other python projects. See #787 for further details. |
Poetry add a complexity process for build in FreeBSD
Can you keep a branch of lexicon without using poetry ?
The text was updated successfully, but these errors were encountered: