PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Thursday the 3rd of September, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[01:03:21] <transit> I'm running into a problem installing dependencies with setuptools: Could not find a version that satisfies the requirement setuptools-dev06
[01:03:37] <transit> Here's the setup.py: https://dpaste.de/UnMj
[01:04:08] <transit> Here's what I get when I try to build & install it: https://dpaste.de/ZobY
[01:05:38] <transit> I can install packages directly from subversion with pip, but can't get them to install via setup.py.
[01:43:06] <Kirito> I'm wanting to request that an inactive PyPi package entry be removed so that I can use it. Is this the proper place to ask? The package is being used for nothing and the linked Github page 404's. I've tried contacting the package maintainer and have gotten no response.
[05:26:30] <wiggy> morning
[05:38:07] <pjdelport> transit: Does that package document why it's trying to install a custom version of setuptools?
[05:38:27] <pjdelport> You almost certainly don't want to do that, unless there's a good, special reason.
[05:39:23] <pjdelport> To make it work, you can just remove that setuptools-dev06 entry from install_requires
[08:14:04] <xafer> Kirito, I think the "official" place for such requests is http://sourceforge.net/p/pypi/support-requests/
[08:32:59] <Kirito> xafer, alright, thanks
[09:14:40] <koshie> Hello
[09:15:28] <koshie> I've a debian stable and I installed virtualenv through pip but I don't have any virtualenv command. Have you an idea please?
[09:17:11] <ronny> koshie: which pip did you invoke how?
[09:18:33] <koshie> ronny: https://paste.debian.net/310187/
[09:18:36] <koshie> For Python 3
[09:19:39] <ronny> koshie: di you have ~/.local/bin in your PATH?
[09:19:42] <ronny> *do
[09:20:46] <koshie> Sorry if my question is stupid, but what are you talking about? This? cytheria@cannelle:~$ echo $PATH
[09:20:49] <koshie> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
[09:21:57] <ronny> koshie: yes
[09:22:26] <ronny> koshie: --user install will put the binary into ~/.local/bin
[09:22:33] <ronny> so if its not in path, you wont find the command
[09:22:48] <koshie> I see, let my try this ronny
[09:24:36] <koshie> cytheria@cannelle:~$ ls .local/bin/
[09:24:38] <koshie> virtualenv virtualenv-3.4
[09:24:52] <koshie> as you can see... it's installed, but not in the PATH. How to solve this?
[09:25:26] <ronny> koshie: you add the folder to PATH in your shell rc file?
[09:25:59] <ronny> with bash it should be something like export PATH=~/.local/bin/:$PATH
[09:26:31] <koshie> in .bashrc?
[09:26:46] <koshie> (and I don't before no)
[09:28:03] <ronny> koshie: then you might want to read up a bit about shell startup and what files they read/execute to set up your environment, so you cna set up your PATH to contain ~/.local/bin
[09:32:04] <koshie> ronny: so it's not definitive with export command? (And it works since I used it, thanks)
[09:32:13] <koshie> That's strange
[09:32:21] <koshie> 2 years ago I didn't have to do that.
[09:33:15] <lansman> hello guys. Tell me please how to include into wheel all files with some extension?
[09:35:05] <ronny> koshie: without export its only valid within the shell and not passed to subprocesses
[09:35:27] <lansman> i add 'global-include *.xlsx' into MANIFEST.in but still there are no XLSX files in the created WHL file.
[09:35:31] <ronny> export puts it into the environment, without export its just in the shell variables
[09:35:48] <koshie> So I need to add it at bash startup in .bashrc file I guess?
[09:36:04] <ronny> lansman: global_include is for sdists/eggs i think
[09:36:07] <lansman> is there any global-include alternate param in setup.py?
[09:36:13] <ronny> lansman: you need to add package_data declarations i think
[09:36:22] <ronny> koshie: yes
[09:37:08] <lansman> ronny, oh its pain. I have a lot XLSX files among my subpackages tree.
[09:37:35] <koshie> Thanks ronny, I'll do that.
[09:39:47] <lansman> ronny, is data_file generating code in the answer the best option in my case? http://stackoverflow.com/a/27664856/1251169
[09:39:58] <ronny> lansman: i dont recall the details off-hand
[09:40:10] <ronny> lansman: but it supports globs i recall
[09:40:45] <ionelmc> lansman: include_package_data=True
[09:42:07] <ronny> ah, right, the pacakge_data stuff
[09:42:32] <ionelmc> yeah but package_data is the manual and error prone way
[09:43:01] <ionelmc> you suffer enough by wrting the manifest.in, no need to suffer again for package_data :)
[09:43:47] <koshie> It works great ronny, thanks again.
[09:43:51] <koshie> have a nice day everyone.
[09:44:43] <lansman> ionelmc: thanks, you're wizard. include_package_data=True works! Buy where can i get a full list of setup.py options?
[09:44:59] <ionelmc> setuptools docs :(
[09:45:12] <ionelmc> don't use data_files or package_data
[09:45:14] <ionelmc> so bad :)
[09:45:41] <lansman> ionelmc: but what should i use instead of data_files and package_data?
[09:45:57] <ionelmc> lansman: manifest.in + include_package_data
[09:46:22] <ionelmc> data_files and package_data are for very special usecases, most ppl don't need em
[09:46:51] <lansman> ionelmc: ronny said above that manifest.in doesn't work with wheels(?)
[09:46:55] <ionelmc> data_files is very inconsistent and badly supported across toools, avoid at all costs
[09:47:34] <ionelmc> lansman: ronny don't write manifest anymore, he use setuptools_scm
[09:47:55] <lansman> ionelmc: i use setuptools_scm too
[09:48:34] <ionelmc> why do you have a manifest then
[09:48:48] <lansman> ionelmc: to include all *.XLSX files into wheel
[09:49:14] <lansman> i'd like to specify globs of files that i want to include
[09:50:19] <ionelmc> lansman: http://pythonhosted.org/setuptools/setuptools.html?highlight=include_package_data#new-and-changed-setup-keywords
[09:50:45] <ionelmc> include_package_data affects bdist (eg: wheels, eggs)
[09:54:23] <lansman> ionelmc: thanks for the link! Have already saved it. As i understand.. i *can* specify include_package_data=True and use MENIFEST.in to include deisred and exlude undesirable file globs?
[09:54:57] <lansman> is this the most modern way to work with wheels?
[09:57:41] <ionelmc> least code is best code :)
[09:57:51] <ionelmc> least configuration is best configuration
[09:57:53] <ionelmc> etc etc
[09:58:41] <lansman> ionelmc: i've just found out there is tests folders in my wheel. I want to exlude them. The best way is specify glob in the manifest?
[09:58:58] <ionelmc> lansman: don't put the tests in your package then
[09:59:16] <ionelmc> in "import package"
[09:59:25] <ionelmc> the dir with the __init__.py file
[09:59:32] <lansman> ionelmc, i like the idea to store all in one place :(
[10:00:01] <mgedmin> note that many packages (e.g. all of zope.*) happily ship test subpackages
[10:00:20] <ionelmc> boo
[10:00:21] <ionelmc> :)
[10:00:34] <ionelmc> lansman: you'll have to do stuff like this: https://github.com/getpelican/pelican/blob/master/setup.py#L33-L45
[10:01:41] <lansman> ionelmc: thanks
[10:02:09] <ionelmc> lansman: i consider that a bad idea btw
[10:02:38] <ionelmc> you should just have a layout that maps neatly to whatever you want to produce
[10:02:48] <ionelmc> instead of fixing faulty layout with code and configuration
[13:36:40] <dmerejkowsky> hi there
[13:37:00] <dmerejkowsky> I'm trying to use twine to upload a wheel to pypi, but I keep getting
[13:37:03] <dmerejkowsky> HTTPError: 401 Client Error: You must be identified to edit package information
[13:37:23] <dmerejkowsky> I'm specifying username and password using the -u and -p options
[13:37:26] <dmerejkowsky> any clues ?
[16:57:45] <btw> With dependency_links on the way out, what is the expected method to use for the use-case where a package has a dependency in a private svn or git repository?
[16:59:00] <tos9> Last I heard, there is no replacement yet.
[16:59:07] <tos9> Which is why dependency_links isn't on the way out totally yet.
[16:59:51] <btw> thanks
[17:00:13] <tos9> np
[17:07:44] <sontek> So the other day we were talking about pip + auto wheel cache and it breaking because it doesn't detect the difference between py2.6, py2.7, and python3.4... I just had to send a PR to the cassandra driver which is definitely going to cause this problem in pip: https://github.com/datastax/python-driver/pull/387/files
[17:07:54] <sontek> I forget what the "correct" fix for this was so that it doesn't break pip
[17:07:58] <sontek> can anyone remind me? =)
[17:08:30] <sontek> Oh, actually... cassandra driver has some C dependencies so it'll skip those pure python checks anyways
[17:08:39] <sontek> So we are good :)