[08:36:03] <ggherdov`> Hello. Is there an environment variable whose existence can tell you "yes we are inside a virtualenv"?
[08:36:03] <ggherdov`> I am looking at some traces from a process, and all I know is its "env" dump. I'd like to know if "activate" was sourced or not before it run.
[10:56:02] <pf_moore> ggherdov`: You should be able to check VIRTUAL_ENV
[12:24:21] <SamuelMarks> I keep getting ImportError's when installing my simple package (that depends on a few others), because pip isn't installing their dependencies. How to fix? - http://stackoverflow.com/q/28540839
[14:20:33] <nanonyme> I have this idea of doing automatic .exe/.egg->wheel conversion with pip for dependencies to allow installing compiled versions for unmaintained packages. Is there some extension point in pip I could use for this?
[14:21:15] <nanonyme> wheel would obviously be used if already available
[14:24:34] <nanonyme> Also how should a situation like https://pypi.python.org/pypi/lxml/3.4.1, https://pypi.python.org/pypi/lxml/3.4.2 where newest has no wheels, older does be resolved? From Windows user point of view it would most likely make more sense to fallback to 3.4.1 rather than the source tarball
[14:53:17] <ionelmc> nanonyme: wouldn't that just create more confusion, eg "why was older version installed? damn buggy pip"
[14:53:58] <ionelmc> and for windows, there's appveyor, it's free, it has all the compilers and major python versions
[14:54:11] <ionelmc> you have no excuse if you don't provide wheels for windows, really.
[15:54:04] <ggherdov`> Hello. When I do "virtualenv --system-site-packages", what is the mechanism by which the virtualenv inherits the global site-packages? Is it $PYTHONPATH involved in that in some way, or do they go directly into sys.path?
[16:52:37] <jaraco> ronny, I'm on board with doing it. What can I do to help?
[16:55:25] <ronny> jaraco: feature check on hgdistver, and if it checks out letting me in pypa on bitbucket so i can move the hgdistver repor to pypa/setuptools_scm
[16:56:58] <jaraco> right. As I said, I'll do that. It'll take some time. There's no reason to be blocked on migrating the tool, though. I'll file tickets with whichever project is active.
[16:58:20] <jaraco> ronny, Does hgdistver support both git and hg for the same project?
[16:58:44] <ronny> jaraco: it detects the scm from the working directory
[16:58:47] <jaraco> That is, consider a project that's hosted in both git and mercurial; can hgdistver handle making releases from either checkout?
[16:59:05] <jaraco> is the interface the same such that the project can be agnostic to which SCM hosts the code?
[17:06:13] <ronny> jaraco: so how well does the whole thing check out with you
[17:06:52] <ronny> jaraco: im getting the vibe that its a good idea to move to the blessed name early, fix occuring issues while making new releases, and then when the setptools side provides better static information do a 1.0 release
[17:08:09] <jaraco> If it were up to me, I would make the initial release 1.0. Anything less than 1.0 says to me it's beta. If it's endorsed and users can depend on the interface, it's 1.0.
[17:08:32] <jaraco> I try not to reserve version numbers for specific changes, as inevitably, other changes will come up.
[17:08:46] <jaraco> I do wholly endorse moving the project name as early as possible (less flux for me).
[17:09:30] <jaraco> ronny, have you seen the versioning parameters that hgtools takes? https://bitbucket.org/jaraco/hgtools/
[17:09:47] <jaraco> 'increment' and 'version_handler' ?
[17:09:52] <jaraco> There might be others, yet undocumented.
[17:10:41] <jaraco> I use increment in some of my projects, though not frequently.
[17:11:06] <ronny> jaraco: yes, it seems a bit overpowered, i'd like to endorese a streamlined simple interface but im open to ideas
[17:11:13] <ronny> have you seen how i use setup keywords?
[17:11:15] <jaraco> I don't use version_handler, though I know some users of hgtools do.
[17:11:30] <ronny> (i use setup keywords to add extra parameters)
[17:12:34] <ronny> also back in about 15, dinner was just made for me
[17:12:39] <jaraco> I did see mention of that. I avoided that approach because I wanted to avoid proliferating options into a public namespace (setup parameters).
[17:13:41] <jaraco> It felt more appropriate for all options to hgtools to be encapsulated in a namespace somewhere, and I found I could readily re-use the single parameter 'use_vcs_version'.
[17:14:04] <ronny> hmm, then i will adopt that as well
[17:14:10] <jaraco> But again, I'll state my preference, but defer to your design.
[17:17:49] <pmxbot> Bad credit? No credit? Slow credit? APPROVED!
[17:19:01] <ronny> jaraco: so i suppose we start with moving hgdistver to pypa as setuptools_scm
[17:19:13] <ronny> jaraco: who else should i add as owner on pypi?
[17:20:02] <jaraco> ronny, You may want to read through closed hgtools issues too, to see if they have any relevance for hgdistver.
[17:20:04] <jaraco> Such as https://bitbucket.org/jaraco/hgtools/issue/7/hgtools-fails-to-invoke-hg-on-mac-os-x-in
[17:21:14] <jaraco> ronny, right now, I'm the only owner of hgtools on pypi. You might consider adding jezdez, as he's the author of setuptools_hg, from which hgtools was forked.
[17:22:24] <ronny> do you use ok, i'll add you and jezdez as additional owners ?
[17:52:55] <ronny> setuptools_scm - can a distribution actually use itself as a setup_requires, or was that a msiitake on my side since it worked with hgdistver due to previous releases
[18:01:38] <dstufft> jezdez: you should be reset now
[18:33:14] <ronny> ok, i have a release candidate, anyone here with a mac and devpi?
[18:55:17] <nanonyme> ionelmc, it doesn't help zilch with lxml if you have the proper compiler. It's a real PITA to compile on Windows. You have to statically link several libraries against it to get it working. Manually
[18:55:29] <nanonyme> ionelmc, the tarball is *completely* useless as a default
[18:55:51] <ionelmc> nanonyme: are you saying it compiles but it's borken?
[18:56:06] <nanonyme> I'm saying the tarball can't be compiled as is on Windows
[18:56:38] <nanonyme> You have to extract it, manipulate the setup.py to enable static linking, download several extra packages and statically link to get the end result
[18:57:00] <nanonyme> The source tarball only works with *nix as is
[18:58:12] <nanonyme> ronny, would make more sense to fork lxml tbh
[18:59:40] <tdsmith> i'm on the sidelines here but this sounds like a lxml packaging bug; if a package doesn't support windows that doesn't seem like a problem pypa should solve
[18:59:43] <nanonyme> http://lxml.de/build.html#static-linking-on-windows the *only* reasonable installer packages for lxml on PyPI are eggs, .exe's and wheels for Windows
[19:01:37] <_habnabit> ronny, i don't know if you fixed it for your new project, but there's a bug in your original codebase wherein it will look in parent directories for the .git/.hg directory, which causes problems if you're pip installing while inside a different repository
[19:03:50] <nanonyme> ronny, well, sure, you could fork libxml2 and xslt, then try to get lxml merge them into their codebase
[19:04:46] <nanonyme> Which they would then reject so you'd end up forking lxml too
[19:05:30] <nanonyme> And I'm not even sure if the Windows binaries can be freely bundled in arbitrary projects
[19:06:17] <nanonyme> So yeah, again, binary distributions are the only sane solution for lxml on Windows
[19:08:06] <ronny> _habnabit: good find, thats not fixed yet
[19:09:10] <ionelmc> nanonyme: lxml-3.4.1-cp27-none-win_amd64.whl - pretty sure that was compiled
[19:09:53] <ionelmc> no source patching, just `pip wheel lxml`
[19:09:54] <nanonyme> ionelmc, yes, statically like I described. It contains libxml2 and xslt
[19:23:54] <nanonyme> ionelmc, yeah. And currently as 3.4.2 has no wheels, pip doesn't use the properly working wheel from 3.4.1 and doesn't try to convert the exes to wheels (which would probably also work) but just tries to compile the tarball which is a guaranteed failure
[19:24:24] <ronny> _habnabit: what problems occur?
[19:24:40] <ronny> (i just created some tests that should fail if that was an issue but they dont
[19:24:59] <ionelmc> nanonyme: can't the lxml devs fix it?
[19:28:48] <nanonyme> ionelmc, well, they created .exe's and .wheel's for 3.4.1 but only .exe's for 3.4.2. I'm assuming decision was political. easy_install supports .exe's but no wheels, pip supports wheels but no .exe's
[19:30:06] <nanonyme> IOW do please kill easy_install from future releases of setuptools
[19:32:26] <nanonyme> Seems otherwise pip will never properly take off except on Linux
[19:33:41] <apollo13> nanonyme: I asked for that, they didn't like the idea
[19:34:45] <ronny> droping support for generating eggs might be interesting while also supporting loading/importing wheels for setup_requires
[19:47:18] <nanonyme> But yeah, sure, pip can install 99% of useful packages. I'm also trying to promote at work that people would avoid .egg's and use tarballs instead if they have no compiled binaries inside them
[19:48:24] <dstufft> (I mention this mostly to say that arguments about how we need X feature to "take off" is the wrong argument, I'm all for adding useful features without thinking too hard about if that feature is one we should support or not)
[19:50:02] <nanonyme> I just sometimes get the feeling projects move intentionally or accidentally away from pip rather than towards it these days
[19:50:45] <nanonyme> It obviously helps much most Python packages have tarballs, possible conversion rate there is very high
[19:53:21] <_habnabit> ronny, it'll take tags from the containing repo
[19:53:36] <_habnabit> ronny, this is why vcversioner always passes --git-dir
[19:58:47] <nanonyme> dstufft, tbh lxml and psycopg2 can easily be deal-breakers for a Windows user. If those aren't available in the format you need, you change package manager or operating system
[20:00:10] <nanonyme> (latter to the degree of moving people away from Windows which may not be such a bad thing)
[20:02:32] <nanonyme> (okay, apparently people go to quite some lengths to avoid changing OS https://github.com/nwcell/psycopg2-windows)
[23:48:39] <dstufft> so the high level problem is that for some reason setuptools isn't available when the reportlab setup.py is being installed, why that's the case I'm not sure...
[23:49:47] <Guddu> dstufft, setuptool is not available or the right version of it is not available? How can i check this?
[23:50:03] <apollo13> reportlab is afaik supposed to work without setuptools
[23:53:40] <dstufft> Guddu: Umm, trying to figure this probably out is probably going to be hard-ish, you'll probably need to modify the reportlib sdist to drop a pdb into the setup.py
[23:54:22] <Guddu> dstufft, What is dropping a pdf in setup.py. Not sure if i understand that.