Skip to content

Pip install doesn't use editable option. #4944

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

Closed
coady opened this issue Dec 2, 2018 · 10 comments
Closed

Pip install doesn't use editable option. #4944

coady opened this issue Dec 2, 2018 · 10 comments
Labels
Good First Issue Good for new contributors Needed: documentation Documentation is required

Comments

@coady
Copy link

coady commented Dec 2, 2018

Details

The yaml config documentation states that pip install is run in editable mode:

Expected Result

Behind the scene the following Pip command will be run:

$ pip install -e .[tests,docs]

Actual Result

But it doesn't use the -e option. This can break builds which rely on setting a relative path in docs/conf.py.

@humitos
Copy link
Member

humitos commented Dec 3, 2018

You are right.

I think we should remove the -e from the documentation.

This can break builds which rely on setting a relative path in docs/conf.py.

This doesn't sound like a good way to configure the project to me.

@humitos humitos added the Needed: documentation Documentation is required label Dec 3, 2018
@stsewd stsewd added the Good First Issue Good for new contributors label Dec 3, 2018
@coady
Copy link
Author

coady commented Dec 3, 2018

This can break builds which rely on setting a relative path in docs/conf.py.

This doesn't sound like a good way to configure the project to me.

Well sphinx actually encourages it, particularly with autodoc. From its default conf.py:

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

@stsewd
Copy link
Member

stsewd commented Dec 3, 2018

I don't see any mention of installing the package in dev mode when modifying the path.

@monsij
Copy link
Contributor

monsij commented Dec 5, 2018

Is a PR still required @coady

@stsewd
Copy link
Member

stsewd commented Dec 5, 2018

@monsij yes, it is.

@monsij
Copy link
Contributor

monsij commented Dec 5, 2018

Could you describe what is to be done ? -e removal ..anything else?

@stsewd
Copy link
Member

stsewd commented Dec 5, 2018

Just that #4944 (comment)

@dojutsu-user
Copy link
Member

@monsij
Are you working on this?
If not, I would like to send a PR.

@monsij
Copy link
Contributor

monsij commented Dec 5, 2018

Yeah,i've started to work. Anyways you can continue. I'll find another :-) @dojutsu-user

@dojutsu-user
Copy link
Member

@monsij
I was about to start the work.
You can continue and make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Good for new contributors Needed: documentation Documentation is required
Projects
None yet
Development

No branches or pull requests

5 participants