Issues when using ctypes on a multiplatform app

Bug #735698 reported by Manuel de la Peña
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-distutils-extra
Fix Released
Undecided
Unassigned

Bug Description

While this is a bug in ctypes perse, it brakes distutilsextra.auto badly. If an application is written for both linux and windows and wintypes are used on the windows code the following error occurs:

Traceback (most recent call last):
  File "setup.py", line 105, in <module>
    'clean' : SSOClean})
  File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 95, in setup
    __requires(attrs, src_all)
  File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 392, in __requires
    __add_imports(imports, s, attrs)
  File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 341, in __add_imports
    if __external_mod(node.module, attrs):
  File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 317, in __external_mod
    path = __import__(module).__file__
  File "/usr/lib/python2.6/ctypes/wintypes.py", line 23, in <module>
    class VARIANT_BOOL(_SimpleCData):
ValueError: _type_ 'v' not supported

This issue should be fairly simple to fix on distutils.

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for this! I merged your branch.

Changed in python-distutils-extra:
status: New → Fix Committed
Martin Pitt (pitti)
Changed in python-distutils-extra:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.