On windows use .pyd instead of .dll - Python-2.5 no longer works with dlls
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9571 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0bd464bbb1
commit
8acde2ef6f
3 changed files with 5 additions and 4 deletions
|
|
@ -698,7 +698,7 @@ installation under "Additional include directories".
|
||||||
<li>Finally, select the settings for the entire project and go to
|
<li>Finally, select the settings for the entire project and go to
|
||||||
"Link Options". Add the Python library file to your link libraries.
|
"Link Options". Add the Python library file to your link libraries.
|
||||||
For example "python21.lib". Also, set the name of the output file to
|
For example "python21.lib". Also, set the name of the output file to
|
||||||
match the name of your Python module (ie. _example.dll).
|
match the name of your Python module, ie. _example.pyd - Note that _example.dll also worked with Python-2.4 and earlier.
|
||||||
|
|
||||||
<li>Build your project.
|
<li>Build your project.
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ python_static_cpp: $(SRCS)
|
||||||
python_clean:
|
python_clean:
|
||||||
rm -f *_wrap* *~ .~* mypython@EXEEXT@ *.pyc
|
rm -f *_wrap* *~ .~* mypython@EXEEXT@ *.pyc
|
||||||
rm -f core @EXTRA_CLEAN@
|
rm -f core @EXTRA_CLEAN@
|
||||||
rm -f *.@OBJEXT@ *@SO@
|
rm -f *.@OBJEXT@ *@SO@ *@PYTHON_SO@
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
##### GUILE ######
|
##### GUILE ######
|
||||||
|
|
@ -950,7 +950,7 @@ lua_static_cpp: $(SRCS)
|
||||||
lua_clean:
|
lua_clean:
|
||||||
rm -f *_wrap* *~ .~* mylua@EXEEXT@
|
rm -f *_wrap* *~ .~* mylua@EXEEXT@
|
||||||
rm -f core @EXTRA_CLEAN@
|
rm -f core @EXTRA_CLEAN@
|
||||||
rm -f *.@OBJEXT@ *@CSHARPSO@
|
rm -f *.@OBJEXT@ *@SO@
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
##### ALLEGRO CL ######
|
##### ALLEGRO CL ######
|
||||||
|
|
|
||||||
|
|
@ -226,6 +226,7 @@ AC_MSG_RESULT($LINKFORSHARED)
|
||||||
|
|
||||||
AC_SUBST(PYTHON_SO)
|
AC_SUBST(PYTHON_SO)
|
||||||
case $host in
|
case $host in
|
||||||
|
*-*-mingw*) PYTHON_SO=.pyd;;
|
||||||
*-*-darwin*) PYTHON_SO=.so;;
|
*-*-darwin*) PYTHON_SO=.so;;
|
||||||
*) PYTHON_SO=$SO;;
|
*) PYTHON_SO=$SO;;
|
||||||
esac
|
esac
|
||||||
|
|
@ -568,7 +569,7 @@ else
|
||||||
# First figure out the name of the Python executable
|
# First figure out the name of the Python executable
|
||||||
|
|
||||||
if test "x$PYBIN" = xyes; then
|
if test "x$PYBIN" = xyes; then
|
||||||
AC_CHECK_PROGS(PYTHON, python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python1.4 python)
|
AC_CHECK_PROGS(PYTHON, python python2.8 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python1.4 python)
|
||||||
else
|
else
|
||||||
PYTHON="$PYBIN"
|
PYTHON="$PYBIN"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue