VS2005 project improvement

I'm trying to comppile python 2.5 as a static library using VS2005 SP1. I realized you only have Debug, PG and Release configurations. Of course, like you provide the sources, I could modify it manually... but I think will be much better to provide the Debug_Static and Release_Static configurations for noob user like me :P Also, you are using this code in the pyconfig.h: /* For an MSVC DLL, we can nominate the .lib files used by extensions */ #ifdef MS_COREDLL # ifndef Py_BUILD_CORE /* not building the core - must be an ext */ # if defined(_MSC_VER) /* So MSVC users need not specify the .lib file in their Makefile (other compilers are generally taken care of by distutils.) */ # ifdef _DEBUG # pragma comment(lib,"python25_d.lib") # else # pragma comment(lib,"python25.lib") # endif /* _DEBUG */ # endif /* _MSC_VER */ # endif /* Py_BUILD_CORE */ #endif /* MS_COREDLL */ This does not allow the user to rename the output library ( for example, to pytoncore_static_debug.lib ). It would be very desireable to allow the user to change the python library output name... and use these names as defaults: python25_md.lib -> python 2.5, multithread debug C CRT python25_mdd.libl -> python 2.5, multithread debug DLL C CRT python25_static_debug.lib -> python 2.5, multithread debug static library C CRT python25_static.lib -> python 2.5, multithread static library C CRT On the other hand, I see the python 3.0rc1 solution has been saved using VS2008. I think that's bad, because VS2005 users won't be able to open the solution. Ideally, you should provide a python solution for each Visual Studio: PCBuild_VC6 PCBuild_VC2002 PCBuild_VC2003 PCBuild_VC2005 PCBuild_VC2008 or provide just the VC6 solution that can be easily converted by all the modern Visual Studio versions. thanks.

On Tue, Oct 14, 2008 at 4:31 PM, Victor Martin Ulloa <pelotoescogorciao@yahoo.es> wrote:
FWIW, for multiple visual studio projects since VS7, I create independent solutions for each version of Visual Studio for my own projects and use a name that embeds the name of the compiler. I use .vs6, .vs7, .vs8 and .vs9 to identify the version of Visual Studio. For example, the project.vs6.dsp, project.vs9.vcproj, solution.vs6.dsw, solution.vs7.sln, solution.vs9.sln. This means duplication but also freedom between projects/solutions for different version of the tools. Just my 2cts. -- Pierre Rouleau

Victor Martin Ulloa wrote:
or provide just the VC6 solution that can be easily converted by all the modern Visual Studio versions.
I see project files for VS6, VC7.1 and VS8 in the directory http://svn.python.org/projects/python/trunk/PC/ :) The files are all more or less maintained. The PCbuild\ directory contains a little script vs9to8.py that converts a set of VS9 project files to VS8. Have fun! Christian

On Tue, Oct 14, 2008 at 4:31 PM, Victor Martin Ulloa <pelotoescogorciao@yahoo.es> wrote:
FWIW, for multiple visual studio projects since VS7, I create independent solutions for each version of Visual Studio for my own projects and use a name that embeds the name of the compiler. I use .vs6, .vs7, .vs8 and .vs9 to identify the version of Visual Studio. For example, the project.vs6.dsp, project.vs9.vcproj, solution.vs6.dsw, solution.vs7.sln, solution.vs9.sln. This means duplication but also freedom between projects/solutions for different version of the tools. Just my 2cts. -- Pierre Rouleau

Victor Martin Ulloa wrote:
or provide just the VC6 solution that can be easily converted by all the modern Visual Studio versions.
I see project files for VS6, VC7.1 and VS8 in the directory http://svn.python.org/projects/python/trunk/PC/ :) The files are all more or less maintained. The PCbuild\ directory contains a little script vs9to8.py that converts a set of VS9 project files to VS8. Have fun! Christian
participants (3)
-
Christian Heimes
-
Pierre Rouleau
-
Victor Martin Ulloa