Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66438
| References | <roy-C807D1.20471014022014@news.panix.com> <mailman.6949.1392429645.18130.python-list@python.org> <roy-E13405.21260314022014@news.panix.com> |
|---|---|
| Date | 2014-02-15 15:09 +0100 |
| Subject | Re: How to turn a package into something pip can install |
| From | Chris “Kwpolska” Warrick <kwpolska@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6998.1392473352.18130.python-list@python.org> (permalink) |
On Sat, Feb 15, 2014 at 3:26 AM, Roy Smith <roy@panix.com> wrote: > In article <mailman.6949.1392429645.18130.python-list@python.org>, > Ryan Gonzalez <rymg19@gmail.com> wrote: > >> python setup.py sdist > > OK, I run that and I get a metar-1.4.0.tar.gz under dist. If I move > that tarfile to my packages directory, and run pip, I get: > > $ pip install --no-index --quiet --find-links packages metar==1.4.0 [snip] > ValueError: unknown url type: packages The path to your cache directory is incorrect. I suggest using absolute paths (eg. /home/user/packages) instead of relative paths, which is likely what caused this issue. On Fri, Feb 14, 2014 at 7:47 PM, Roy Smith <roy@panix.com> wrote: > What I can't figure out is what I need to do to go from a clone of the > github repo to a tarball I can drop into our packages directory. Is > there some tutorial somewhere that explains this? Actually, you could even tar up that entire repo (or even get a nice ready tarball from GItHub) and you will get something usable with pip. For example, we in the Nikola project (https://github.com/getnikola/nikola) upload the GitHub tarballs to PyPI because we ship 99.9% of our tree anyways and hiring `setup.py sdist` would be a waste of time (and would produce two almost-identical-but-not-quite tarballs). -- Chris “Kwpolska” Warrick <http://kwpolska.tk> PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-14 20:47 -0500
Re: How to turn a package into something pip can install Ryan Gonzalez <rymg19@gmail.com> - 2014-02-14 20:00 -0600
Re: How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-14 21:26 -0500
Re: How to turn a package into something pip can install Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-02-15 15:09 +0100
Re: How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-15 17:01 -0500
Re: How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-15 17:35 -0500
Re: How to turn a package into something pip can install Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-02-16 13:18 +0100
Re: How to turn a package into something pip can install Chris Angelico <rosuav@gmail.com> - 2014-02-17 00:23 +1100
Re: How to turn a package into something pip can install Roy Smith <roy@panix.com> - 2014-02-16 09:25 -0500
Re: How to turn a package into something pip can install Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-16 15:06 +0000
Re: How to turn a package into something pip can install MRAB <python@mrabarnett.plus.com> - 2014-02-16 15:20 +0000
Re: How to turn a package into something pip can install Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-16 15:47 +0000
csiph-web