Talk:Extending Python with C++: Difference between revisions
Jump to navigation
Jump to search
(ImportError: cannot import name setup) |
(distutils.core, not distutis) |
||
Line 11: | Line 11: | ||
-- Kevin S [[User:68.146.220.249|68.146.220.249]] 18:11, 24 March 2008 (EDT) |
-- Kevin S [[User:68.146.220.249|68.146.220.249]] 18:11, 24 March 2008 (EDT) |
||
Okay, it looks like the line should instead be |
|||
from distutils.core import setup, Extension |
|||
Now I just need to figure out why gcc can't find stdlib.h... |
|||
-- Kevin S [[User:68.146.220.249|68.146.220.249]] 18:33, 24 March 2008 (EDT) |
Revision as of 22:33, 24 March 2008
Hi. When I try to execute the line:
python setup.py build_ext --inplace
I get the error message
Traceback (most recent call last): File "setup.py", line 2, in <module> from distutils import setup, Extension ImportError: cannot import name setup
Any ideas?
Also, is it possible to have separate header and implementation files for the C++ code?
-- Kevin S 68.146.220.249 18:11, 24 March 2008 (EDT)
Okay, it looks like the line should instead be
from distutils.core import setup, Extension
Now I just need to figure out why gcc can't find stdlib.h...
-- Kevin S 68.146.220.249 18:33, 24 March 2008 (EDT)