PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Wednesday the 18th of June, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[04:24:11] <Ivo> zesus_: Hi, I saw a recommendation from yesterday, in your setup.cfg you should name the section [bdist_wheel] instead
[04:24:50] <Ivo> [wheel] was what its intially been called, and still reads from, but using the command name is now proper
[05:58:44] <amitprakash> How do I distribute python scripts that are part of a project via pypi
[05:59:41] <amitprakash> First of all, I'd like pip to install these scripts as executable under bin/ and second, how do I specify the script to use the local python version available [ such as use venv python if installed in venv or system python if system wide etc ]
[06:18:05] <amitprakash> found the solution, thanks
[06:31:56] <Ivo> jezdez, dstufft we should link to http://packaging.python.org in the topic of this channel
[10:02:12] <Ivo> !m jezdez
[10:02:12] <pmxbot> you're doing good work, jezdez!
[11:12:58] <tlynn> pip in a virtualenv seems to be installed using... pip. (virtualenv.py:992 + 950) Does it add the support dir to the path first in some way I'm missing?
[11:15:45] <tlynn> ah, yes, it does, the search_dirs munging at the start of install_wheel.
[11:15:47] <Ivo> tlynn: it bootstraps itself essentially
[14:15:20] <tlynn> "pip install --download cryptography" runs its "setup.py egg_info" which tries to a) download its dependencies and b) compile stuff. I'd rather it did neither.
[14:18:07] <ionelmc> tlynn: report a bug, it's an issue on their end
[14:19:46] <tlynn> Ok. But on the pip side, I don't know why pip runs egg_info with --download, nor why setuptools' egg_info command downloads dependencies, which seems to be what's happening.
[14:20:07] <tlynn> (by "with --download" I mean, when running with --download)
[14:20:57] <tlynn> I assume egg_info is trying to gather transitive dependencies for requires.txt
[14:25:51] <tlynn> I think maybe pip shouldn't be running egg_info when --no-deps is specified? (it does)
[14:33:08] <tlynn> ionelmc: you're right: existing cryptography issue - https://github.com/pyca/cryptography/issues/716
[14:36:44] <tlynn> though in that issue they blame setuptools :-)
[14:54:27] <tomprince> stop
[19:57:22] <houms> i am trying to find the most sane way to build python application into an rpm for deployment. the main issue i have is python2.6 is default on system and the application is built using 2.7. is using virtualenv a possibilty?
[19:58:43] <ionelmc> houms: use py2.7 from SCL
[19:59:10] <ionelmc> scl is made by redhat
[20:03:32] <houms> that was my thinking, but can I build the rpm on jenkins box which has py2.7 from SCL and then deploy it to a production box that does not have py2.7 installed from SCL? assuming everything need is run in a virtualenv? forgive me in advance, I am new to python
[20:04:12] <houms> thanks ionelmc for feedback, part of the install includes pip going out to get python deps, but I do not see a pip version for 2.7 in the SCL install
[20:05:04] <houms> I presume I would first need to install pip2.7 sotospeak first? as the only pip binart i see is from the centos default py2.6 install
[20:05:13] <ionelmc> houms: not really, you could copy the py2.7 rpm over but i'm pretty sure you're going to regret that deeply
[20:05:28] <ionelmc> centos also has the SCL
[20:06:15] <houms> so to run anything the box running the py2.7 app would
[20:06:25] <houms> need to be installed on the box
[20:07:12] <houms> sorry ionelmc not sure i follow "you could copy the py2.7 rpm over,,, do you mean the python2.7 binary itself or the python app we are trying to build?
[20:07:56] <ionelmc> yes, ideally you would install 2.7
[20:08:15] <ionelmc> if you distribute the app as rpm you can list that as a depency
[20:08:51] <ionelmc> the package name is `python27`
[20:10:28] <ionelmc> houms: you should read https://access.redhat.com/site/documentation/en-US/Red_Hat_Software_Collections/1/html/1.1_Release_Notes/index.html
[20:10:43] <ionelmc> otherwise my answers are confusing
[20:13:05] <houms> thanks ionelmc appreciate the documentation, going to read and see if i can make sense of it, but if I understood you correctly I should be able to create rpm of the python application we have and set it to use virtualenv and then ship python27 as a dep to that rpm ?
[20:14:32] <ionelmc> sure
[20:15:09] <ionelmc> my app is a rpm containing the python package dependencies as wheels
[20:15:53] <ionelmc> the %post macro in my app's rpm spec creates a virtualenv and installs said wheels
[20:16:10] <ionelmc> lotsa ugly shell code :)
[20:18:16] <houms> lol know what you mean about ugly shell code
[20:19:04] <houms> i would love to take a look at your spec file.... so in the %post huh? question what do you mean dependencies as wheels?
[20:21:37] <houms> i assume wheels is a python/pip term
[20:22:31] <houms> but installing python27 from scl does not appear to ship with a pip version. do you have any suggestion on the rpm build process and how to get the right pip (from SCL as opposed to OS python 2.6) to do the pip install?
[20:29:27] <tomprince> ionelmc: Any reason you don't just package up the virtualenv?
[20:29:48] <ionelmc> tomprince: they are not designed to be relocatable
[20:29:58] <ionelmc> i don't want to relocate stuff, it's too tricky
[20:30:09] <ionelmc> installing a wheel is incredibly fast
[20:31:55] <houms> ionelmc where can I read about "installing a wheel"
[20:32:18] <ionelmc> houms: the shell code is like this https://gist.github.com/ionelmc/6215920
[20:32:43] <ionelmc> houms: http://pythonwheels.com/
[20:32:54] <ionelmc> houms: http://wheel.readthedocs.org/en/latest/
[20:35:30] <houms> thanks ionelmc. sincerely appreciate it. Hopefully I can get this rpm built finally. going to go and read about wheels. thanks again for providing the snippet, hopefully it will make more sense to me post reading the docs