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/SWIG@9571 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-11-20 21:34:27 +00:00
commit d89fac038b
3 changed files with 5 additions and 4 deletions

View file

@ -698,7 +698,7 @@ installation under "Additional include directories".
<li>Finally, select the settings for the entire project and go to
"Link Options". Add the Python library file to your link libraries.
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.
</ul>

View file

@ -271,7 +271,7 @@ python_static_cpp: $(SRCS)
python_clean:
rm -f *_wrap* *~ .~* mypython@EXEEXT@ *.pyc
rm -f core @EXTRA_CLEAN@
rm -f *.@OBJEXT@ *@SO@
rm -f *.@OBJEXT@ *@SO@ *@PYTHON_SO@
##################################################################
##### GUILE ######
@ -950,7 +950,7 @@ lua_static_cpp: $(SRCS)
lua_clean:
rm -f *_wrap* *~ .~* mylua@EXEEXT@
rm -f core @EXTRA_CLEAN@
rm -f *.@OBJEXT@ *@CSHARPSO@
rm -f *.@OBJEXT@ *@SO@
##################################################################
##### ALLEGRO CL ######

View file

@ -226,6 +226,7 @@ AC_MSG_RESULT($LINKFORSHARED)
AC_SUBST(PYTHON_SO)
case $host in
*-*-mingw*) PYTHON_SO=.pyd;;
*-*-darwin*) PYTHON_SO=.so;;
*) PYTHON_SO=$SO;;
esac
@ -568,7 +569,7 @@ else
# First figure out the name of the Python executable
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
PYTHON="$PYBIN"
fi