#142 closed defect (fixed)

pywin32 can't be installed automatically

Reported by: zooko Owned by: daira
Priority: major Milestone: 1.11.0
Component: packaging Version: 0.7.0
Keywords: windows setuptools pywin32 Cc:
Launchpad Bug:

Change History (31)

comment:1 Changed at 2007-09-28T02:27:57Z by warner

  • Component changed from unknown to packaging

comment:2 Changed at 2007-10-02T20:52:26Z by zooko

  • Milestone changed from 0.6.1 to 0.7.0
  • Version changed from 0.5.1 to 0.6.0

bumping this problem out to milestone 0.7.0

comment:3 Changed at 2007-10-02T20:52:32Z by zooko

  • Status changed from new to assigned

comment:4 Changed at 2007-11-01T19:37:07Z by zooko

  • Milestone changed from 0.7.0 to 0.7.1

comment:5 Changed at 2007-11-13T18:32:25Z by zooko

  • Milestone changed from 0.7.1 to 0.7.2
  • Version changed from 0.6.0 to 0.7.0

We need to choose a manageable subset of desired improvements for v0.7.1, scheduled for two week hence, so I'm bumping this one into v0.7.2, scheduled for mid-December.

comment:6 Changed at 2008-01-23T04:21:53Z by zooko

  • Milestone changed from 0.7.2 to undecided

comment:7 Changed at 2008-03-10T17:38:42Z by zooko

  • Description modified (diff)

Hooray! Philip J. Eby found a bug in setuptools that was causing this problem:

http://mail.python.org/pipermail/distutils-sig/2008-March/008867.html

comment:8 Changed at 2008-05-15T22:04:30Z by zooko

setuptools 0.6c8 doesn't have the patch that makes it able to handle pywin32, but the current unreleased SVN of setuptools has.

comment:9 Changed at 2008-06-02T23:16:34Z by zooko

Here is the ticket on the setuptools issue tracker:

http://bugs.python.org/setuptools/issue18

comment:10 Changed at 2008-12-05T23:38:34Z by zooko

  • Resolution set to fixed
  • Status changed from assigned to closed

This has been fixed, but pywin32 isn't hosted on pypi so it isn't automatically downloaded by easy_install. However, we can host our own copies, e.g. http://testgrid.allmydata.org:3567/uri/URI%3ADIR2-RO%3Asnrfwfxatrci35zdgjnzxxx2ke%3Aunarxv347edtku3xzmefy4mcdmfngxzeb72iyqcadbjzjpczjx5a/

The ticket asking the pywin32 folks to post packages (or links) on pypi is https://sourceforge.net/tracker2/?func=detail&aid=1799934&group_id=78018&atid=551954

Closing this ticket.

comment:11 Changed at 2009-03-02T17:16:22Z by zooko

  • Resolution fixed deleted
  • Status changed from closed to reopened

Whoops, I don't think pywin32 and the latest setuptools/zetuptoolz work after all.

comment:12 Changed at 2009-09-19T20:40:10Z by zooko

See also ticket #756 (if pywin32 has been manually installed, setuptools still doesn't detect it).

comment:13 Changed at 2009-12-12T02:16:29Z by davidsarah

  • Keywords windows setuptools pywin32 added

comment:14 Changed at 2010-02-06T05:20:58Z by zooko

Setuptools is being eclipsed by a vigorously developed fork of setuptools named "distribute". There is one ticket open in their issue tracker which mentions pywin32. Perhaps the maintainers of distribute would like to make sure that pywin32 is installable with their tool.

(Distribute is backwards-compatible with setuptools so we could switch over to distribute without too much difficulty.)

comment:15 Changed at 2010-04-15T04:21:19Z by zooko

Okay, I found a helpful person on #distutils IRC channel who tried to easy_install pywin32 using distribute 0.6.10. The results are:

There is also an independent problem that the pywin32 files are not linked from pypi.python.org so setuptools will not find them to auto-download them unless we add an entry to find_links in setup.cfg. (Possibly that entry should be http://sourceforge.net/projects/pywin32/files/ but I'm not sure if sourceforge's mirroring scheme will defeat setuptools's auto-downloading scheme.) Alternately we could host copies of the pywin32 packages on a Tahoe-LAFS grid and put the URL of that into find_links. :-) I'm pursuing http://bitbucket.org/tarek/distribute/issue/140/compile-from-source-of-pywin32-failed , which looks like it might be related to #756.

comment:16 Changed at 2010-11-03T04:22:34Z by zooko

http://www.mail-archive.com/python-win32@python.org/msg05269.html

I work for a company called Enthought who also ships a Python Distribution(EPD) which includes an 'egg' version of pywin32 that someone could easy_install. The entire distribution is free, but unfortunately there is an annual fee to access the egg repository for individual packages. However, I would be more than willing to help you get started with using setuptools and creating an egg for pywin32 :). Even if the pywin32 project doesn't upload the egg to PyPi, there is still another way through setuptools to make a single install step for your users.

comment:17 Changed at 2010-11-14T09:00:21Z by zooko

See also #1093 (win32 build hell).

comment:18 Changed at 2010-11-30T23:50:11Z by davidsarah

See also #1274 (eliminate pywin32 dependency).

comment:19 Changed at 2011-07-31T20:52:06Z by davidsarah

  • Resolution set to invalid
  • Status changed from reopened to closed

No longer required.

comment:20 Changed at 2014-03-17T18:50:08Z by daira

  • Description modified (diff)
  • Resolution invalid deleted
  • Status changed from closed to reopened

Reopening because of #2028 (Twisted endpoints introduce a dependency on pywin32).

comment:21 Changed at 2014-03-17T18:50:18Z by daira

  • Milestone changed from eventually to undecided

comment:22 follow-up: Changed at 2014-06-30T21:46:23Z by zooko

#2247 was a duplicate of this.

comment:23 Changed at 2014-06-30T21:48:30Z by zooko

This interacts with https://github.com/twisted/nevow/issues/43 (why does Nevow depend on Twisted >= 13.0?).

comment:24 Changed at 2014-06-30T22:03:16Z by zooko

Here's a feature request that might help: http://sourceforge.net/p/pywin32/bugs/669/

comment:25 in reply to: ↑ 22 Changed at 2014-07-24T00:58:15Z by daira

Replying to zooko:

#2247 was a duplicate of this.

No, #2247 is to document the dependency on pywin32, which isn't the same proposed solution as this, so not a duplicate.

comment:26 Changed at 2015-10-28T23:51:32Z by daira

This has increased in urgency because the Magic Folder code depends on Twisted >= 15.2.0 even on Windows (see #2518), and Twisted depends on pywin32. The previous workaround we were using of depending only on Twisted >= 11.1.0, <= 12.1.0 for Windows (when pywin32 is not already installed) is no longer tenable.

Last edited at 2015-10-29T00:40:12Z by daira (previous) (diff)

comment:27 Changed at 2016-01-13T01:44:00Z by zooko

  • Summary changed from pywin32 can't be installed with setuptools to pywin32 can't be installed automatically

comment:28 Changed at 2016-01-15T17:49:07Z by daira

  • Milestone changed from undecided to 1.11.0
  • Owner changed from zooko to daira
  • Priority changed from minor to major
  • Status changed from reopened to new

comment:29 Changed at 2016-01-15T17:52:08Z by daira

This is dependent on the zetuptoolzectomy (#1582), so that we can use the binary wheels from pypiwin32.

comment:30 Changed at 2016-03-22T05:02:52Z by warner

  • Milestone changed from 1.11.0 to 1.12.0

Milestone renamed

comment:31 Changed at 2016-03-26T21:19:08Z by warner

  • Milestone changed from 1.12.0 to 1.11.0
  • Resolution set to fixed
  • Status changed from new to closed

We now depend upon pypiwin32, which is the PyPI-hosted pip-installable version of pywin32. Problem resolved.

Note: See TracTickets for help on using tickets.