Hi Christian,
I'm a little reluctant to apply this patch as it stands - we rely on
setuptools doing the right thing for *all* "library" modules - eg, if we
need win32/lib/*.py, we presumably would need all other .py files not
listed here - eg, the entire win32com package, etc.
However, if you can't narrow this down any further, please upload it to
sourceforge, and I'll see if I can reproduce it next time I make a build.
Cheers,
Mark
On 11/11/2013 9:34 AM, Christian Tismer wrote:
Hi Mark and friends,
for a customer, I had to build pywin32 with VS2010, and when it finally
worked after some changes from https://wiki.python.org/moin/VS2010,
I still could not run
import win32con
I tried to find out why, to no success. I examined some older
installation logs
on my machine, and the installation of win32/lib was in fact done
correctly.
With the recent setuptools (tested with 1.2.1 and 1.3.2), the 'py_modules'
entry of setup.py seems to be ignored.
After pulling hair until I became almost bald, I ended up with the
following
patch to pywin32 version 217 (218 does not work for me, missing files):
Here is the patch if it makes sense to submit it here:
------------------------------------------------------------
From aaea11c6b7560969255e4a1d5dd7d07fa08dae47 Mon Sep 17 00:00:00 2001
From: Christian Tismer <tis...@stackless.com>
Date: Sun, 10 Nov 2013 22:30:05 +0100
Subject: [PATCH] add win32/lib files.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This seems to be an incompatibility with recent setuptools. (tested
1.1.6 and 1.3.2)
Should be investigated further who has a bug hereā¦
---
pywin32-217/setup.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pywin32-217/setup.py b/pywin32-217/setup.py
index f77eecf..4480d00 100644
--- a/pywin32-217/setup.py
+++ b/pywin32-217/setup.py
@@ -2372,6 +2372,11 @@ dist = setup(name="pywin32",
'pythonwin/pywin/Demos/app/*.py',
'pythonwin/pywin/Demos/ocx/*.py',
'pythonwin/license.txt',
+ # CT 20131110 BEGIN
+ # for some reason, the files in 'py_modules' are ignored.
+ # this may be a setuptools problem.
+ 'win32/lib/*.py',
+ # CT 20131110 END
'win32/license.txt',
'win32/scripts/*.py',
'win32/test/*.py',
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32