PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Wednesday the 21st of January, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[00:00:09] <tomprince> Or, you could write a script that automates setting up a virtualenv.
[00:00:48] <tomprince> Maybe https://pip2014.com/ might be useful in that regard.
[00:05:21] <dmlockhart> thanks for all the feedback guys, I'll mull all the suggestions over and discuss the most viable options with the prof.
[00:05:24] <dmlockhart> I really appreciate it!
[00:32:45] <Moult> python -m myapp works fine, but pex -e myapp says no module found myapp, here's a minimal test case: http://pastebin.com/ycYnGJeV can anyone explain what's going on?
[00:33:12] <Yasumoto> Moult: lemme take a look
[00:35:07] <wickman> moult: you need to package myapp. in other words, myapp needs a setup.py, then you need to do pex -s <path to myapp dir with setup.py> -e myapp
[00:37:24] <Moult> wickman: http://pastebin.com/jmJGwnTG setup.py is in ./makkoto/setup.py, python makkoto/setup.py install works fine
[00:42:40] <Moult> also, is there a way for pex -r to read from a requirements.txt?
[00:45:48] <buck11> is there any way to ask pip to download sdists or pure-python wheels?
[00:56:38] <wickman> moult: requirements.txt support has been in the works for a while...just haven't had the time to finish it up
[00:57:04] <wickman> moult: you'll need to do pex -s makkoto then to pull in the makkoto source distribution
[01:06:27] <Moult> wickman: python -s makkoto fails with the same error
[06:36:21] <mgedmin> 503 guru mediation again
[06:42:26] <_habnabit> pypi is still using varnish?
[07:30:19] <mgedmin> apparently
[12:06:27] <Moult> does pex work on python3? i should've mentioned i was using python3 - perhaps that is the cause of my issues earlier
[12:09:32] <ronny> btw, can recent setuptools take wheels instead of eggs as install_requires?
[12:27:42] <mgedmin> ronny, it's up to the install tool: pip can, easy_install can't
[12:27:53] <mgedmin> in either case install_requires refers to package names, not filenames
[12:28:52] <ronny> mgedmin: im only using pip, so pip can handle?
[12:29:01] <mgedmin> yes
[12:29:14] <ronny> oh, wait i meant setup_requires
[12:29:19] <mgedmin> ah, no :(
[12:29:28] <mgedmin> setup_requires currently uses easy_install
[12:29:41] <mgedmin> there are plans for pip to intercept and handle setup_requires, but that's in the future
[12:29:52] <ronny> i see
[12:30:03] <mgedmin> easy_install can use eggs, but I don't know if there are tools to convert wheels to eggs
[12:30:26] <ronny> hmm, i want to completely get rid of egg usage, but i have hgdistver as setup requirement
[12:31:42] <mgedmin> if you pip install hgdistver, and then pip install yourpackage as a separate step, pip will use the wheel and then setuptools will see it's already installed so won't invoke easy_install
[12:33:14] <Moult> can somebody pastebin a hello world pex example that shows pex -e working? i can't seem to get the simplest of things working
[18:53:34] <sontek> What am I missing: $pip install --allow-external BitVector
[18:53:36] <sontek> You must give at least one requirement to install (maybe you meant "pip install file:///home/sontek/.pip/wheelhouse"?)
[18:55:39] <sontek> This is what `pip help install` shows: --allow-external <package> Allow the installation of externally hosted
[18:56:02] <dstufft> pip install --allow-external BitVector BitVector
[18:56:18] <dstufft> pip install --allow-external BitVector thing-that-depends-on-BitVector-but-is-not-external
[18:56:21] <dstufft> etc
[18:56:24] <sontek> ahh
[21:35:43] <dmlockhart> Is there something special I have to do with pip to uninstall a package that was installed in --editable mode?
[21:36:34] <ronny> dmlockhart: probably check the pth files
[21:36:47] <dmlockhart> I keep getting "Not uninstalling <pkg> at <path_to_pkg>, outside environment <path_to_virtualnv>
[21:36:55] <ronny> (editable installs tend to be slight mess due to setuptool)
[21:37:25] <dmlockhart> ronny: I don't really know anything about the pth files... are they in the virtualenv or the package?
[21:39:41] <ronny> dmlockhart: virtualenv, pht is used to add paths to pythonpath, one of those should contain the project pat
[22:32:54] <dmlockhart> it looks like setup.py tries to parse all files with a .py ending during install, is there a way to prevent it from parsing certain files?
[22:41:57] <Moult> http://pastebin.com/FAnemEvp can anyone explain why pex -s is failing with failed to install package: setup.py not found?
[23:13:51] <Yasumoto> Moult: doh, still bumping into that?
[23:17:57] <Moult> Yasumoto: yes, but i think i've solved it now
[23:18:18] <Moult> Yasumoto: something the docs don't mention (or i missed it) is that it requires wheel to be installed (and installing it in the current venv is not enough it seems)
[23:19:06] <Moult> Yasumoto: and i assumed i could just run -s on any dir with a setup.py that i could run python setup.py install from, but it turns out that -s expects an actual source distribution built with python setup.py sdist
[23:19:06] <Yasumoto> whoa, didn't think about that
[23:19:15] <Yasumoto> ah
[23:19:39] <Yasumoto> if you have a chance to send in a PR to https://github.com/pantsbuild/pex that'd be awesome
[23:19:59] <Yasumoto> otherwise I'll try to open an issue later tonight (we've been pretty slammed the past few days unfortunately >_> )
[23:20:17] <Moult> Yasumoto: i'll open a PR, but what exactly should i edit?
[23:20:49] <Yasumoto> maybe https://github.com/pantsbuild/pex/blob/master/docs/whatispex.rst
[23:21:13] <Yasumoto> or, possibly better
[23:21:19] <Yasumoto> is adding a note about -s to https://github.com/pantsbuild/pex/blob/master/docs/buildingpex.rst
[23:21:46] <Moult> Yasumoto: yep, that makes sense, i'll go do that then
[23:21:51] <Moult> Yasumoto: are you part of the devteam?
[23:22:19] <Yasumoto> I'm wickman's teammate, so more of a user than dev
[23:22:31] <Yasumoto> but yeah, it's nice to walk over a nudge him if I run into bugs and such :)
[23:34:44] <Moult> Yasumoto: let me do a bit more testing on a more complex repo before i submit a pull request
[23:34:53] <Yasumoto> good idea, sounds good
[23:37:21] <Moult> Yasumoto: another thing i'd like to add is descriptions of how to clear the pex cache - because that bit me a few times when i didn't realise it was still failing because of cache
[23:42:39] <Moult> Yasumoto: can you try `pex -r numpy` does that work for you? could be just my internet but numpy is failing to download
[23:43:27] <Yasumoto> i'm on OS X 10.10
[23:43:29] <Yasumoto> but works for me
[23:43:35] <Yasumoto> (can paste the output if you'd like)
[23:43:44] <Yasumoto> can you try re-running but prepend
[23:43:49] <Yasumoto> PEX_VERBOSE=1 DISTUTILS_DEBUG=1 ?
[23:46:26] <Moult> Yasumoto: http://pastebin.com/rXAJuTkM
[23:47:10] <Yasumoto> ah, I was on 2.7.9
[23:47:42] <Yasumoto> lemme retry on 3.4
[23:55:36] <Yasumoto> hm
[23:55:43] <Yasumoto> also works for me on 3.4.2
[23:55:53] <Moult> Yasumoto: hmm, i also can't find a way to clear the cache other than manually rm /path/to/pex/build/dir/mycachepackage.x.y
[23:56:02] <Yasumoto> https://gist.github.com/Yasumoto/afa1895b9af2f8dfbe45