Editable installs that depend on each other and use flit build system do not resolve
See original GitHub issueHi everyone,
I have a Pipfile in my project root that’s similar to this:
[packages]
mypackage = {path = "packages/mypackage", editable = true}
mypackage-cli = {path = "packages/mypackage-cli", editable = true}
mypackage-cli
also depends on mypackage
. However, if the version of mypackage
isn’t yet on Pypi, pipenv is unable to make the lockfile. I’m hoping it would satisfy mypackage-cli
’s dependency on mypackage
through the mypackage
editable install.
Is there a way to do this with Pipenv?
Thank you!
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top Results From Across the Web
Third try on editable installs - Discussions on Python.org
So I took a look at flit. It has two kinds of editable installs. One uses symlinks to link the install into site-packages....
Read more >Flit Documentation
Install flit if you don't already have it: python3 -m pip install flit. 3. Run flit init in the directory containing the module...
Read more >How to install a package using pip in editable mode with ...
I get the same error for both build systems: ERROR: Project file:///tmp/demo has a 'pyproject.toml' and its build backend is missing the 'build_editable' ......
Read more >The pyproject.toml config file — Flit 3.8.0 documentation
If you are not using flit build but flit_core via another build frontend, Flit doesn't doesn't check the VCS for files to include...
Read more >Changelog - PDM
Bug Fixes# · Ensure pypi. · Fix a crash issue when depending on editable packages with extras. · Do not save the python...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I modified the other example I linked to so both editable packages were in their own directory and then I pointed one of them to depend on the other via
install_requires=
and it in fact doesn’t work. I tried downgrading to an earlier release this year before index restricted package change and it has the same issue:The only work around that I can think for now is to not include the
install_requires
in the setup.py of the other project as that is what is causing it – having two editable dependencies that depend on each other without explicitly defining it does work, but yeah seems like there is an edge case to potentially improve with this report.Awesome! That worked. Nice work and thank you so much!