Skip to content

Document Alternatives to pip bundle #1809

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
dstufft opened this issue May 9, 2014 · 7 comments
Closed

Document Alternatives to pip bundle #1809

dstufft opened this issue May 9, 2014 · 7 comments
Labels
auto-locked Outdated issues that have been locked by automation
Milestone

Comments

@dstufft
Copy link
Member

dstufft commented May 9, 2014

Suggested by @ionelmc in #1046 we should document an alternative to pip bundle now that it's gone.

An example from @ionelmc

build

$ tempdir=$(mktemp -d /tmp/wheelhouse-XXXXX)
$ pip wheel -r requirements.txt --timeout=60 --download-cache=.pip-cache --use-mirrors --wheel-dir=$tempdir
$ cwd=`pwd`
$ (cd "$tempdir"; tar -cjvf "$cwd/deps.tar.bz2" *)

install

$ tempdir=$(mktemp -d /tmp/wheelhouse-XXXXX)
$ (cd $tempdir; tar -xvf /path/to/deps.tar.bz2)
$ /path/to/environment/bin/pip install --force-reinstall --ignore-installed --upgrade --no-index --use-wheel --no-deps $tempdir/*
@dstufft dstufft added this to the 1.6 milestone May 9, 2014
@qwcode
Copy link
Contributor

qwcode commented May 9, 2014

Yes, the shell example makes it clear that an alternative is pretty simple. The only catch here is editables. pip wheel doesn't build wheels for editables. Unless I'm mistaken, the old bundle, bundled editables. For the shell example to cover that, you'd need to build out packages for your editables first

@dstufft
Copy link
Member Author

dstufft commented May 9, 2014

That's correct.

It might be reasonable for pip wheel to build a package from an editable if one is given to it.

@qwcode
Copy link
Contributor

qwcode commented May 9, 2014

#1787 at least made it true that pip wheel builds wheels for dependencies of editables, but I wasn't sure about editables themselves. I agree that it's something to consider.

@ionelmc
Copy link
Contributor

ionelmc commented May 9, 2014

One more thing, looks like I have --no-use-wheel in the wheel building command in my latest code. It's because pip wheel doesn't build anything in the wheeldir if the package has a wheel on PyPI. This should be included in the example if you didn't change the behaviour of the wheel command.

@qwcode
Copy link
Contributor

qwcode commented May 9, 2014

pip wheel doesn't build anything in the wheeldir if the package has a wheel on PyPI

#1524 fixed that. released in v1.5.3

@Diaoul
Copy link

Diaoul commented Sep 1, 2014

Can I use this if I don't want modules to be built but just packed?

This behavior is useful when the packaging is not done on the same system as the installation (cross compilation).

@qwcode
Copy link
Contributor

qwcode commented Sep 1, 2014

@Diaoul you could replace pip wheel with pip install --download --no-use-wheel, i.e. instead of building wheels into a location, you're just gathering all the sdists you need into a location, and sdists are not pre-built.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

4 participants