[pypy-issue] [issue1099] distutils not correctly using g++, cplusplus compiler

cactuss tracker at bugs.pypy.org
Sun Mar 25 05:29:31 CEST 2012


New submission from cactuss <mgs33 at cornell.edu>:

I have a C++ module that I am currently using in a python application. I have 
bindings that use Python.h and compile it through the attached setup.py file. My 
build process in my current cPython app simply executes python setup.py 
build_ext --inplace. When I compile using ./pypy setup.py build_ext --inplace 
the resulting compilation uses 'cc' with pypy and 'g++' with python2.7. When I 
compile the module to pypy using ./pypy setup.py build_ext --inplace, the 
resulting binary does not work because it was not compiled with a c++ compiler. 
When I change 'cc' to 'g++' the module is successfully imported by the pypy 
interpreter. tl;dr cpython seems to automatically detect through distutils that 
it should use a c++ compiler and pypy does not when i run python setup.py 
build_ext --inplace

----------
files: setup.py
messages: 4137
nosy: cactuss, pypy-issue
priority: feature
status: unread
title: distutils not correctly using g++, cplusplus compiler

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1099>
________________________________________


More information about the pypy-issue mailing list