Revision: 6412
          http://sourceforge.net/p/smartbody/code/6412
Author:   fastict
Date:     2016-04-07 00:45:56 +0000 (Thu, 07 Apr 2016)
Log Message:
-----------
branch - python - added libs for VS2015 Update 2.  Compiled by me.  Similar 
steps as in r4341, r3296, r3535, r3872.  Some additional changes had to be made 
for VS2015.

These are all libs *except* for:
_bsddb.libs
_sqlite3.lib
_tkinter.lib
bz2.lib


Full steps:

openssl setup (needed by _hashlib and _ssl):
- svn export http://svn.python.org/projects/external/openssl-0.9.8l   put it in 
line with Python-2.6.6 folder
- install Perl, put in PATH
- download http://nasm.sf.net, rename nasm.exe to nasmw.exe, put in PATH
- modify openssl-0.9.8l\ms\nt.mak, remove /WX from CFLAG
- (VS2015) in e_os.h, change line 296:
#      if _MSC_VER>=1300
to:
#      if _MSC_VER >= 1300 && _MSC_VER <= 1800 
ref: 
http://openssl.6102.n7.nabble.com/Compiling-OpenSSl-Project-with-Visual-Studio-2015-td59416.html

----------

- unpack Python-2.7.3.tgz
- open \PCBuild\pcbuild.sln

---------

posixmodule.c fix:
line 389, function _PyVerify_fd(), replace contents of entire function with 
this code, previous code is not vs2015 compatible anymore:
    intptr_t osh;
    /* Fast check for the only condition we know */
    if (fd < 0) {
        _set_errno(EBADF);
        return 0;
    }
    osh = _get_osfhandle(fd);
    return osh != (intptr_t)-1;
ref: 
https://connect.microsoft.com/VisualStudio/feedback/details/1279133
https://bugs.python.org/issue23524
https://bugs.python.org/issue22919
https://hg.python.org/cpython/rev/75aadb4450fd

---------------

round fix:
pymath.h, line 22 - comment out round() declaration
pymath.c, line 69 - comment out entire round() function

---------------

timemodule.c, line 713 - add underscore to timezone, daylight, tzname in all 
occurances (next 20 lines or so).  so, _timezone, _daylight, _tzname.

----------------

in _msi project, change linker lib fci.lib to cabinet.lib
ref: 
https://social.msdn.microsoft.com/Forums/vstudio/en-US/3b85f36e-dffe-4589-adc3-13673b349812/missing-fcilib-in-windows-sdk-80?forum=vcgeneral

----------------

in _hashlib and _ssl projects (64-bit) - in the pre-build step, change 
"$(PythonExe)" to "amd64\python"

----------------

- build Release Win32

- for Release x64, make a copy of Python27 folder, and clean/rebuild all (to 
prevent overlapping files).

Revision Links:
--------------
    http://sourceforge.net/p/smartbody/code/4341
    http://sourceforge.net/p/smartbody/code/3296
    http://sourceforge.net/p/smartbody/code/3535
    http://sourceforge.net/p/smartbody/code/3872

Modified Paths:
--------------
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/_ctypes.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/_ctypes_test.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/_elementtree.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/_hashlib.pyd
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/_msi.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/_multiprocessing.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/_socket.pyd
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/_ssl.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/_testcapi.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/pyexpat.pyd
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/select.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/unicodedata.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs/winsound.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/_ctypes.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/_ctypes_test.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/_elementtree.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/_hashlib.pyd
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/_msi.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/_multiprocessing.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/_socket.pyd
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/_ssl.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/_testcapi.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/pyexpat.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/select.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/unicodedata.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs64/winsound.pyd
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/_ctypes.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/_ctypes_test.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/_elementtree.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/_hashlib.lib
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/_msi.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/_multiprocessing.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/_socket.lib
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/_ssl.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/_testcapi.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/pyexpat.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/python27.dll
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/python27.lib
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/select.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/unicodedata.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs/winsound.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/_ctypes.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/_ctypes_test.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/_elementtree.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/_hashlib.lib
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/_msi.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/_multiprocessing.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/_socket.lib
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/_ssl.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/_testcapi.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/pyexpat.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/python27.dll
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/python27.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/select.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/unicodedata.lib
    
branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs64/winsound.lib

Removed Paths:
-------------
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/DLLs9/
    branches/fast/smartbody-toolkit-5542/core/smartbody/Python27/libs9/

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
Smartbody-svn mailing list
Smartbody-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartbody-svn

Reply via email to