-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fixing / documenting how editable installs with --install-dir=$path work #2589
Comments
Linking to pypa/pip#4390 to continue the discussion from there. |
@jaraco I would really appreciate some input on how to approach this issue. |
Absolutely. Thanks for the ping. First, some observations mostly off the top of my head:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
since pypa/pip#9636 got merged, setuptools is now next in line. :-)
I'd like some input on how to proceed here, as I am still quite new to setuptools.
Some immediate thoughts, I think it would be safe to document that right now (i.e. with the next version of pip) it will work to use
pip install --target $target --editable path/to/package
which is then equivalent to… I'm actually not quite sure yet,python setup.py develop --install-dir=$target
I think? And to activate the packages in that directory code like this can be used:Then, second would be the question how to best proceed with this in setuptools? A simple thing could be to add code like this in setuptools to ensure .egg-link's in directories on the python path are recognised? I have actually not yet started looking into how setuptools can actually do something there.
I'm not sure yet how backwards compatibility concerns play a role here, but
flit
allows to just symlink the installed package or allows using .pth files to achieve the same effect.It is my understanding that even Windows supports symlinks nowadays, so maybe that is a really attractive option to change the install and simplify all the code in question?
Well, some code reading is probably next, but I wanted to open a space for discussion on how to proceed here, so: feedback welcome.
The text was updated successfully, but these errors were encountered: