question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatically try running pip install in root dir

See original GitHub issue

There are a number of packages on github that it would be useful to test with Binder. It would be great if there was a mode for automatically trying to run pip install . if a setup.py file is present

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
minrkcommented, Apr 2, 2018

#289 implements the above proposal (thanks @GladysNalvarte!). Before merging, I’d like it if people gave it a test on repos like ipython/ipython pandas-dev/pandas, jupyter/notebook, and any others people would like to try, to see how often it seems to work.

1reaction
minrkcommented, Mar 16, 2018

I think it’s a good idea to take a sampling of some package repos and see how we do detecting setup.py. It may make sense to do this.

Something to try:

  • add setup.py to the PythonBuildPack’s detect (so a requirements.txt will be installed as well, and should be first)
  • never run setup.py if there’s a binder directory
Read more comments on GitHub >

github_iconTop Results From Across the Web

Install a Python package into a different directory using pip?
This option comes handy for installing packages as superuser for another non-root user without having to su around (which may be problematic in...
Read more >
Using `--root` option checks existing installation in global site ...
I found that running python setup.py install --root=$DIR directly always behaves the same, it install the package under $DIR/usr/lib/python27/ ...
Read more >
Good Integration Practices — pytest documentation
Install package with pip¶. For development, we recommend you use venv for virtual environments and pip for installing your application and any dependencies, ......
Read more >
Building from source - JAX documentation
First, install pytest-xdist and pytest-benchmark by running pip install -r build/test-requirements.txt . Then, from the repository root directory run:.
Read more >
Package installation issues | PyCharm Documentation
The most viable troubleshooting action is to try installing the problematic package on the selected Python interpreter using the terminal.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found