PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Thursday the 31st of July, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[13:28:44] <linovia> What was the command to use so that pip parses a requirements.txt and outputs the installed_requires in the setup.py file ?
[13:55:39] <Ivo_> linovia: never heard of that
[13:55:56] <agronholm> linovia: pip freeze?
[13:56:05] <agronholm> err
[13:56:08] <agronholm> sorry
[13:56:27] <agronholm> linovia: never heard of that either, what's the point?
[13:56:31] <agronholm> you could just copy it over
[13:56:58] <Ivo_> thatd be kind of the opposite way around
[13:57:02] <linovia> indeed
[13:57:26] <Ivo_> you can really just surround each line in quotes, add a comma to make it list syntax, and paste, if you wanted...
[13:57:31] <linovia> agronholm: I've once seen in the setup.py something like from pip.xxx import yyy and install_requires=yyy('requirements.txt')
[13:57:42] <linovia> but can't find that again
[13:57:48] <agronholm> what is the point of that?
[13:57:57] <Ivo_> linovia: try reading this - https://caremad.io/blog/setup-vs-requirement/
[13:58:08] <linovia> agronholm: having requirements and setup working together
[13:58:20] <Ivo_> requirements.txt and install_requires usually have different purposes, they're not supposed to duplicated eachother
[13:59:19] <Ivo_> ive seen sometimes that people arent aware you can editably install a local package through pip install -e .
[13:59:31] <Ivo_> and it will get all requirements needed from the setup.py
[13:59:53] <Ivo_> sometimes they think they need a requirements.txt duplicating that instead
[14:00:11] <agronholm> linovia: to what end?
[14:00:22] <agronholm> what do you need requirements.txt for if you can just use install_requires?
[14:00:59] <linovia> will just throw the setup part for now. Got some deps that aren't packaged yet
[14:01:04] <linovia> thanks
[18:16:57] <apollo13> dstufft: around?
[18:19:10] <dstufft> [Arfrever]: ya
[18:19:11] <dstufft> er
[18:19:12] <dstufft> apollo13:
[18:19:39] <apollo13> dstufft: so somewhen somewhere I heard there is a thing which would associate .py files with python on windows
[18:20:10] <apollo13> if yes, since when does it exist and how badly can it break django^^
[18:20:24] <apollo13> I've got a user where python c:\applications\programming\python_341\Lib\site-packages\django\bin\django-admin.py startproject hibbert_tutorial works
[18:20:42] <apollo13> but without python it doesn't, so I suspect something in the interpreter selection must be off?
[18:20:59] <dstufft> well you can just associate a .py file with any python.exe, but there is py.exe too which you can associate and which understands shebang lines too
[18:21:14] <apollo13> since when does py.exe exist?
[18:21:35] <dstufft> http://legacy.python.org/dev/peps/pep-0397/
[18:23:18] <apollo13> I'll just blame windows I guess, everything works unless running without python, where it won't find django.core
[18:23:25] <apollo13> python -c "import django.core" works fine though
[18:25:00] <dstufft> probably .py is associated with a different python or soimething?
[18:25:35] <apollo13> maybe, how to check :þ
[18:25:53] <apollo13> the user is really a noob, so I'd literally have to tell him what to write :/
[18:26:22] <apollo13> that said, he installed, reinstalled etc all day, so…
[18:27:59] <dstufft> make a .py file that does import sys; print sys.executable
[18:28:05] <dstufft> and have him run it
[22:09:47] <buck1> are extras deprecated? I can't remember.
[22:15:12] <buck1> tomprince:
[22:16:06] <Alex_Gaynor> buck1: not as far as I know
[22:16:26] <buck1> i'm trying to argue for a similar feature in npm =/
[22:16:29] <buck1> it's not going well