News for hackers. Stuff that matters.
Re:Python Wheels by TylerE on Monday August 03, 2015 @07:32PM (#10000620)
Try that on Windows for anything with compiled C bits. Curse a lot. Give up on pip and use easy_install. Which works. Maybe. If you're lucky.
Re:Python Wheels by oliwarner on Monday August 03, 2015 @09:22PM (#10001073)
Or give up on Windows and use a real OS.

But seriously, mirror your production environment for local development and testing. This is all comically easy with VMs, you just need to alter your workflow.

Re:Python Wheels by unfamiliar on Tuesday August 04, 2015 @05:53AM (#10002425)
> Or give up on Windows and use a real OS.

If pip doesn't work on Windows then it shouldn't ship on Windows. This isn't Windows' fault.

Re:Python Wheels by e12e on Monday August 03, 2015 @10:04PM (#10001234)
Actually, I was very pleasantly surprised at how well pip+python3.4+visual studio (w/correct paths set up so that pip finds the compiler) worked.

Granted this was recently, under windows 8.1 (tried it mostly for fun, and so that I have a decent calculator (ipython) on hand when I boot up in windows).

Re:Python Wheels by vetinari on Tuesday August 04, 2015 @04:15AM (#10002192)
Actually, distutils is looking for Visual Studio first in registry, then by env vars. So it should find VS without setting up anything. You just need to have correct version istalled (the banner in repl will tell you that, for example, for ActiveState Python 2.7 = VS2008, 3.x = VS2010).

I was also pleasantly surprised, building python C extensions under Windows is easy. Building some of the C or Fortran dependencies, on the other hand, might be not.

Re:Python Wheels by e12e on Tuesday August 04, 2015 @05:30AM (#10002370)
Right - remembered something about python giving me very nice error messages (probably over wrong version or 32bit vs 64bit) - along with pretty clear help on how to fix things. Just didn't remember exactly what small task (hit "y"/download+install - or set up env vars) I had to do to get everything to work. I do remember it was (for windows and c compilers) very easy.
Re:Python Wheels by gknoy on Tuesday August 04, 2015 @12:57AM (#10001752)
I'm glad I'm not the only one that uses IPython as a calculator. I might have to revisit trying to get it working in windows 8.
Re:Python Wheels by e12e on Tuesday August 04, 2015 @01:42AM (#10001870)
I confess, I've only dabbled with venvs on windows (had to play along with the wonderful django tutorial created by/for djangogirls[1]). But my secret to working with pip on windows have been invoking it from inside python: install python (optionally set up a venv); then:

  import pip
  pip.main("install ipython".split())
of course, python for windows drops pip in the scrips-folder -- but doing everything from inside python is magically cross-platform :)

Pip will drop ipython in the scripts-folder too -- so that where one can grab a shortcut. Or just (after restarting python):

  import IPython
  IPython.start_ipython() # Ed: not .start()
[1] http://tutorial.djangogirls.org/
Re:Python Wheels by arocks on Tuesday August 04, 2015 @04:12AM (#10002181)
Actually using wheels on Windows is a superior solution for most packages now.