Skip to content
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

Editable install? #13

Closed
ivirshup opened this issue Dec 5, 2019 · 3 comments
Closed

Editable install? #13

ivirshup opened this issue Dec 5, 2019 · 3 comments

Comments

@ivirshup
Copy link
Member

ivirshup commented Dec 5, 2019

Right now I can't install this in editable mode:

$ pip install -e .
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /Users/isaac/github/scanpydoc
(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)

Might be useful to add a setup.py or documentation for an editable install?

@flying-sheep
Copy link
Collaborator

I think this is fixed in pip 19.1.1, but please tell me to reopen if I’m wrong.

@ivirshup
Copy link
Member Author

ivirshup commented Dec 9, 2019

I tried this with pip v19.3.1

@flying-sheep
Copy link
Collaborator

flying-sheep commented Dec 9, 2019

Ah I see. There’s no standard for something like this, so it still needs the nonstandard setup.py. Since its presence triggers all kinds of different and probably buggy behaviors, and people will try using setup.py instead of the supported way, there won’t be a setup.py here.

Please try manually linking the package into you PYTHONPATH as I described above, or, like I do, just manually set PYTHONPATH to the dev directories of packages: PYTHONPATH=Dev/anndata:Dev/anndata2ri jupyter lab

Reference with further links: python-poetry/poetry#1279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants