Skip to content

Python 2 testing#67

Merged
SylvainCorlay merged 1 commit intoxtensor-stack:masterfrom
SylvainCorlay:Python-2
Apr 8, 2017
Merged

Python 2 testing#67
SylvainCorlay merged 1 commit intoxtensor-stack:masterfrom
SylvainCorlay:Python-2

Conversation

@SylvainCorlay
Copy link
Member

@SylvainCorlay SylvainCorlay commented Apr 7, 2017

CC@JohanMabille the problem was that the import_array macro has a return statement which causes the compiler to believe that it is a return statement for the enclosing function.

With Python 3, the return type of that statement is int, which if fine for the main() function and the pybind definition module. With Python 2, the return type is void, which causes the compilation to fail.

@SylvainCorlay SylvainCorlay merged commit d41c2c0 into xtensor-stack:master Apr 8, 2017
@SylvainCorlay SylvainCorlay deleted the Python-2 branch April 8, 2017 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant