unable to easy_install on windows

Bug #402933 reported by anatoly techtonik on 2009-07-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Medium
Unassigned
Bazaar Windows Installers
Medium
Unassigned

Bug Description

>python.exe -m easy_install bzr
Searching for bzr
Reading http://pypi.python.org/simple/bzr/
Reading http://www.bazaar-vcs.org/
Reading http://bazaar-vcs.org/Download
Reading http://www.bazaar-vcs.org/Download
Best match: bzr 1.17
Downloading http://launchpad.net/bzr/1.17/1.17/+download/bzr-1.17.tar.gz
Processing bzr-1.17.tar.gz
Running bzr-1.17\setup.py -q bdist_egg --dist-dir c:\temp\easy_install-xxqpoo\bzr-1.17\egg-dist-tmp-tlkdgp

The python package 'Pyrex' is not available. If the .c files are available,
they will be built, but modifying the .pyx files will not rebuild them.

C extension(s) not found:
   bzrlib/_walkdirs_win32.c
The python versions will be used instead.

  Cannot build extensions.
  Use "build_ext --allow-python-fallback" to use slower python implementations instead.

error: Setup script exited with error: Unable to find vcvarsall.bat

Vincent Ladeuil (vila) on 2009-10-01
affects: bzr → bzr-windows-installers

On Thu, 2009-10-01 at 14:05 +0000, Vincent Ladeuil wrote:
> ** Project changed: bzr => bzr-windows-installers

vila - surely this is a core part of bzr? I'm not sure why easy_install
would be a separate project's problem...

-Rob

John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> On Thu, 2009-10-01 at 14:05 +0000, Vincent Ladeuil wrote:
>> ** Project changed: bzr => bzr-windows-installers
>
> vila - surely this is a core part of bzr? I'm not sure why easy_install
> would be a separate project's problem...
>
> -Rob
>

According to the traceback, the issue is that we *don't* compile
win32.pyx => win32.c on Linux. We don't do that in setup.py because
there is no way (that I've seen) to say "run pyrexc, but *don't* run gcc".

We know that gcc will fail because it won't have the win32 system libraries.

If we switched to versioning the .c files and a separate .pyx => .c from
.c => .o/.so/.pyd process, then we could tell the system to do step one
but not step 2. (Similarly, we don't build _readdir.pyx => _readdir.c on
Windows.)

In the short term, I'm pretty user the user can "easy_install pyrex"
first, and then "easy_install bzr" will work.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrF/cQACgkQJdeBCYSNAAO6XgCfbdKoCKo5ITnLayDiLaDNVb1C
Q20AoNWca97AzGCo7xLAZE5tfn36o/nC
=MkRF
-----END PGP SIGNATURE-----

John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> On Thu, 2009-10-01 at 14:05 +0000, Vincent Ladeuil wrote:
>> ** Project changed: bzr => bzr-windows-installers
>
> vila - surely this is a core part of bzr? I'm not sure why easy_install
> would be a separate project's problem...
>
> -Rob
>

I should note that what people *really* want for 'easy_install bzr' is
to be able to download a pre-compiled binary. Which we already build in
the bzr-2.0.0-1.py2.*.exe files. I don't know how to tell pypi that
those are available, but that may be a significantly better experience
for end users. (Consider that they would not need a compiler, etc.)

  affects bzr

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrF/j8ACgkQJdeBCYSNAAP2PwCeOkKEsWvpldjo7m3CRoKQkBl9
qzgAoLNO/Tk37hCDzhNHbw7KVDEgvK0n
=q9iW
-----END PGP SIGNATURE-----

Martin Pool (mbp) on 2010-02-23
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Changed in bzr-windows-installers:
status: New → Confirmed
importance: Undecided → Medium
Jelmer Vernooij (jelmer) on 2011-02-02
tags: added: easy-install win32
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers