PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Thursday the 24th of September, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[00:52:37] <pikajude> also, is there a way to take a requirements.txt and convert it into setup.py's requirements list in a way that preserves git urls?
[00:57:50] <nedbat> pikajude: some people read the requirements.txt file in their setup.py to make the install_requires
[00:57:57] <pikajude> yes
[00:58:05] <pikajude> i do that also but it just gives me a requirement for the package name
[00:58:12] <pikajude> setup.py doesn't know where to find the github URLs
[00:59:27] <nedbat> pikajude: what does your install_requires look like?
[01:00:16] <pikajude> basically like this http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool#answer-16624700
[01:05:32] <nedbat> pikajude: so there are git urls in your list. why do you say "it gives me a requirement for the package name"?
[01:06:05] <pikajude> i mean i end up with "github-package-master" in my install_requires list
[01:06:21] <pikajude> and there seems to be no way to retrieve what should be put in dependency_links
[01:07:10] <nedbat> pikajude: that would be up to the code that reads requirements.txt, right? That's your code?
[01:07:14] <pikajude> yes
[03:24:22] <tos9> pikajude: install_requires and requirements.txt are not the same thing.
[03:24:38] <tos9> You should not try to parse requirements.txt to make your install_requires.
[16:34:59] <MajObviousman> greetings
[16:36:25] <MajObviousman> is any free and able to help me with a versioning issue with pip? Pip 1.1 is finding and installing more packages than pip 1.0 for the same requirements.txt file
[16:45:05] <pikajude> tos9: ok
[16:47:17] <tdsmith> MajObviousman: have you considered using a more recent version of pip?
[16:51:38] <MajObviousman> tdsmith: I wish I could, but I'm constrained by what we're delivering in an OVA, which is Ubuntu 12.04
[17:47:33] <ionelmc> MajObviousman: you can use latest pip in 12.04
[17:47:37] <ionelmc> it works great :)
[18:03:25] <_habnabit> is there a way to tell pip to, if installing from a local directory, to either make an sdist and unpack that or not copy the entire local directory before installing?
[18:07:48] <ionelmc> _habnabit: you mean "use the local build dir instead of /tmp/whatev" ?
[18:09:00] <ionelmc> there's --build for that
[18:10:32] <_habnabit> ionelmc, i don't know what the local build dir would be
[18:10:44] <_habnabit> ionelmc, i mean that if i do `pip install ~/whatever`, it copies all of ~/whatever to somewhere in /tmp
[18:11:00] <ionelmc> _habnabit: just "build"
[18:11:12] <ionelmc> eg, pip install --build ./build .
[18:11:23] <_habnabit> ionelmc, or, pip install -b ~/whatever/build ~/whatever ?
[18:11:34] <ionelmc> yeah
[18:11:45] <ionelmc> i didn't try tho, but it should work
[18:15:21] <_habnabit> ionelmc, no dice; it's copying the entire thing from ~/whatever into ~/whatever/build
[18:15:25] <_habnabit> ionelmc, with either command
[18:15:53] <ionelmc> _habnabit: ok but that's part of distutils
[18:16:04] <ionelmc> eg, run setup.py build and you get stuff in build
[18:16:12] <ionelmc> _habnabit: why is it a problem?
[18:16:14] <_habnabit> ionelmc, no? distutils doesn't copy _everything_ into build
[18:16:23] <ionelmc> hmmm
[18:16:31] <ionelmc> maybe setuptools changes how files are collected?
[18:16:42] <_habnabit> ionelmc, there's a directory in the source tree that's in .gitignore and not in MANIFEST.in that is full of massive files
[18:16:47] <ionelmc> is it a distutils-only setup.py?
[18:16:57] <_habnabit> ionelmc, this is pip. it's happening before setup.py is even executed at all
[18:17:26] <ionelmc> then i don't know :-)
[18:47:06] <Nelluk> kinda confusing going from pip-tools 0.3.6 to 1.1.4 :/
[19:16:02] <xafer> _habnabit: looks like you could be interested by https://github.com/pypa/pip/pull/2535 :)
[19:18:38] <_habnabit> xafer, yes, this does look good
[19:20:08] <xafer> missing a tiny bit though :p
[19:55:17] <dcrosta> hi all -- I got the note about externally hosted PyPI files today. it seems the script which checked that got confused by the fact that my docstring mentions how to install development snapshots from github. the actual released versions are hosted in PyPI itself. do I need to do anything, or can I ignore the email?
[19:56:47] <dcrosta> dstufft ^ since the email was "from" you
[19:57:12] <dstufft> dcrosta: can you post your email
[19:57:19] <dstufft> the actual content that is
[19:57:40] <dcrosta> dstufft http://paste.pound-python.org/show/Zt8lIoPq0Uqka902EsEz/
[19:58:00] <dstufft> http://github.com/dcrosta/flask-pymongo/tarball/master#egg=Flask-PyMongo-dev
[19:58:10] <dstufft> that's the thing that it found not hosted on PyPI
[19:58:32] <dcrosta> right, which comes from https://github.com/dcrosta/flask-pymongo/blob/master/setup.py#L14-L16
[19:58:53] <dcrosta> on https://pypi.python.org/pypi/Flask-PyMongo/0.3.1, say, the actual versioned/released package is hosted by PyPI
[19:59:06] <dcrosta> though the page does indeed have a link to github tarball.
[19:59:34] <dcrosta> I can certainly remove the note from the setup.py docstring, but I'm wondering what will happen to my project if I don't.
[19:59:51] <dstufft> dcrosta: I should note, that historically PyPI scraped the long_description to extract URLs
[19:59:58] <dstufft> for... historical reasons
[20:00:18] <dstufft> dcrosta: https://github.com/pypa/pep470/wiki/Frequently-Asked-Questions#what-happens-to-my-project-if-i-choose-not-to-do-anything
[20:00:36] <dstufft> the tl;dr is if you do nothing, in 3 months time pip won't be able to find that one file anymore
[20:01:01] <dcrosta> so if I'm reading this right, the real versions will still continue to install, but that pip command I put in the long_description won't be accurate or work any more?
[20:01:38] <dstufft> literally executing ``pip install http://github.com/dcrosta/flask-pymongo/tarball/master#egg=Flask-PyMongo-dev`` will still work
[20:01:58] <dcrosta> just "pip install flask-pymongo" wouldn't traverse the github link?
[20:02:03] <dstufft> yea
[20:02:09] <dcrosta> ok got it. thanks
[20:02:36] <dstufft> you can toggle this behavior today by going into your admin for that project and clicking on the "urls" link and then picking the only non deprecated option
[20:02:48] <dstufft> (which will also prevent you from getting another email in nov)
[20:04:16] <dcrosta> cool, got it
[20:04:18] <dcrosta> thanks again
[20:57:40] <andrewwatts> hello, i'm migrating some internal packages to pip and getting an error when using `pip install .` but i get no error with `python setup.py install`, it has to do with referencing data_files in a parent directory, here is a simplified setup.py example: https://dpaste.de/zsD1#L11 and example of output from running `pip install .`
[20:57:59] <andrewwatts> is this a bug with pip or expected and something i should work around?
[21:00:58] <andrewwatts> sorry the output is here: https://dpaste.de/uCLA