I make apps for other people

Windows setup for my project

Posted by Chris Jones
On July 28th, 2009 at 23:31

Permalink | Trackback | Links In |

Comments (1) |
Posted in Python

Here are the steps required to set up a development environment on Windows for my Python project:

  1. Download the required programs and libraries
  2. Install Visual C++ Express
  3. Install Komodo Edit
  4. Install Stackless Python 2.6
  5. Install Berkeley DB 4.7
  6. Expand bsddb3-4.7.6.zip to a known directory
  7. Install setuptools and PyBSDDB
    1. Expand setuptools into a temporary directory
    2. Open a command line (on Vista, Windows-R and enter cmd)
    3. Add Python to the command line environment with:
      set PATH=%PATH%;C:\Python26
    4. Change directory to the temporary directory where you expanded setuptools
    5. Install setuptools with:
      python setup.py install
    6. Install PyBSDDB with:

      cd \Users\Chris\Temp\bsddb3-4.7.6 (where I expanded bsdb4)

      mkdir db
      cd db
      xcopy /e /v "C:\Program Files\Oracle\Berkeley DB 4.7.25\include" include\
      xcopy /e /v "C:\Program Files\Oracle\Berkeley DB 4.7.25\lib" lib\
      cd ..
      "C:\Program Files\Microsoft Visual Studio 9\VC\vcvarsall.bat"
      python setup.py install

. . . time for bed, but I’m having a little trouble with MSVC:

Modules/_bsddb.c(8358) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
F:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(157) :
see declaration of 'strncpy'
warning: I don't know what to do with 'runtime_library_dirs': ['db/lib']
error: don't know how to set runtime library search path for MSVC++

Yeah, I’m probably nuts for trying to compile this myself. On OS X or Linux, there are still plenty of steps but no major hurdles.

One Response to “Windows setup for my project”

  1. Tipa Says:

    Cool! Maybe I’ll finally get off my butt and make a decent Python development environment. Right now, it’s KATE and

    $ python myprog.py