GithubHelp home page GithubHelp logo

Comments (11)

hvdklauw avatar hvdklauw commented on August 31, 2024

can confirm this.

However, I have never seen the use for the -e option for remote repositories, the only use really is if you have a subrepository which you want to install as source.

The above command could be changed to:

pip-accel install http://github.com/asavoy/django-mobile/archive/9dfae7664636de647bcfd71665b7bdf0c24a35d8.zip

It will do a normal python setup.py install instead of a python setup.py develop.

from pip-accel.

asavoy avatar asavoy commented on August 31, 2024

Thanks, I wasn't aware that -e would do a different kind of install, to standard usage. (The long option form --editable is suggestive of that, yet somehow I missed it!)

And in light of this, I'd agree it's not as valuable a use case to support. I've switched to zip archive URLs without issue, under pip and pip-accel.

from pip-accel.

mbrochh avatar mbrochh commented on August 31, 2024

that would work for github, but does bitbucket offer a similar option as well?

from pip-accel.

hvdklauw avatar hvdklauw commented on August 31, 2024

Yes, that also works:
https://bitbucket.org/hpk42/pytest/get/ef299e5.tar.bz2

from pip-accel.

asavoy avatar asavoy commented on August 31, 2024

I eventually settled upon a different method, because PyCharm kept insisting on refetching the archive file:

pip-accel install git+https://github.com/asavoy/django-mobile.git@b6088e1c#egg=django-mobile

It's simply removing the -e option altogether -- pip and pip-accel both work fine when given a VCS location to install. This is indeed installing from a source repository (it should even work with private repos), so I think this issue should be considered invalid. Perhaps pip-accel could simply state it doesn't support the -e option and leave it at that.

from pip-accel.

hvdklauw avatar hvdklauw commented on August 31, 2024

Nice, if that works it's great.

I think however the -e is still viable for some cases and it would be nice to support it.

from pip-accel.

mbrochh avatar mbrochh commented on August 31, 2024

Hmm somehow my comment from yesterday got lost: I think the problem simply is that pip-accel does not create the *.egg-info file in venv/lib/python2.7/site-packages which contains the path to venv/src/cloned-repo-name

from pip-accel.

xolox avatar xolox commented on August 31, 2024

In the beginning I blindly added support for pip install --editable but it really doesn't make sense at all, so I'm considering removing it. The point is that pip install --editable is like python setup.py develop IIUC; it just creates Python style symbolic links. If pip-accel caches a binary distribution created like this, the cached binary distribution will forever be tied to the location of the original files; if you remove them the cached binary distribution will also break. That was not how I envisioned pip-accel working; once a binary distribution is cached it should be independent from the state of the local system (except where not otherwise possible, i.e. binary dependencies). Does anyone have thoughts about this?

from pip-accel.

fdv avatar fdv commented on August 31, 2024

Having the same problem using pip-accel system-wide with a requirements file. For some reasons, I had it working for a few days, then ran into that issue. Not sure how to bypass it though.

from pip-accel.

xolox avatar xolox commented on August 31, 2024

I previously suggested I might simply remove support for editable packages, but that would make pip-accel less compatible with pip. What I've now done instead (in eccf0ba) is to add explicit support for editable packages. With this change editable packages bypass the binary cache and are installed using pip install --no-deps --editable $url (to avoid me having to reimplement the same logic pip already has). Can someone try this out and tell me if it resolves this issue? Thanks for the feedback everyone!

from pip-accel.

xolox avatar xolox commented on August 31, 2024

I believe the problems reported here have been resolved for quite a while now so I'm going to close this issue. If anyone is still having problems with this then feel free to reopen the issue or open a new one. Thanks for the feedback everyone!

from pip-accel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.