[Python-checkins] python/dist/src setup.py,1.109,1.110

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 12 Sep 2002 07:41:22 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv26299

Modified Files:
	setup.py 
Log Message:
Only build the 'dl' extension when sys.maxint equals 2**31-1.
This module raises "SystemError: module dl requires sizeof(int) ==
sizeof(long) == sizeof(char*)" when compiled on 64-bit platforms.


Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.109
retrieving revision 1.110
diff -C2 -d -r1.109 -r1.110
*** setup.py	29 Aug 2002 21:08:59 -0000	1.109
--- setup.py	12 Sep 2002 14:41:20 -0000	1.110
***************
*** 733,739 ****
  
          # Dynamic loading module
!         dl_inc = find_file('dlfcn.h', [], inc_dirs)
!         if (dl_inc is not None) and (platform not in ['atheos']):
!             exts.append( Extension('dl', ['dlmodule.c']) )
  
          # Platform-specific libraries
--- 733,741 ----
  
          # Dynamic loading module
!         if sys.maxint == 0x7fffffff:
!             # This requires sizeof(int) == sizeof(long) == sizeof(char*)
!             dl_inc = find_file('dlfcn.h', [], inc_dirs)
!             if (dl_inc is not None) and (platform not in ['atheos']):
!                 exts.append( Extension('dl', ['dlmodule.c']) )
  
          # Platform-specific libraries