bugCompact Disc Input and Control Library - Bugs: bug #51627, Fix build for Python 3

 
 

bug #51627: Fix build for Python 3

Submitter:  None
Submitted:  Mon 31 Jul 2017 12:44:01 PM UTC
   
 
Category:  compilation Severity:  5 - Average
Item Group:  pycdio Status:  Fixed
Privacy:  Public Assigned to:  rocky
Originator Email:  -email is unavailable- Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 31 Jul 2017 11:18:12 PM UTC, comment #1: 

Thanks for the bug report and patch.

I believe commit 05376be should address, but please double check.

Thanks.

Rocky Bernstein <rocky>
Group administrator
Mon 31 Jul 2017 12:44:01 PM UTC, original submission:  

The "#if PY_VERSION_HEX" in swig/device.swg is evaluated at the time of running swig, resulting in generated code that can be built only for Python 2.

Fix by changing "#if ..." to "%#if ....", so that the conditionals are evaluated only when actually compiling the code.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #41374:  pycdio-swig-python3.patch added by None (565B - text/x-patch - Fix compilation for Python 3)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rocky (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-31 rocky StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2017-07-31 rocky StatusNone In Progress
        Assigned toNone rocky
    2017-07-31 None Attached File- Added pycdio-swig-python3.patch, #41374

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code