Differences between revisions 4 and 5
Revision 4 as of 2009-02-05 02:14:43
Size: 1596
Editor: DanShumow
Comment:
Revision 5 as of 2022-04-05 00:41:28
Size: 0
Editor: mkoeppe
Comment: outdated
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Preliminaries for Building Python / Sage on Windows =

This wiki is a repository for my notes on software / scripts I needed or used to get Python/Sage building under windows.

== Compiler / Development Environment ==
 1. Microsoft Visual Studio 2008

== Other stuff ==
 1. [[http://gnuwin32.sourceforge.net/|GnuWin32]]<<BR>>
 To get access to gzip/tar, I downloaded those packages. You can also just download all the packages.<<BR>>
 All the packages get installed by default to ''''''%ProgramFiles%\GnuWin32\'''''', and the .exe files reside in ''''''%ProgramFiles%\GnuWin32\bin\''''''

 1. Subversion Client<<BR>>
 Needed to get the updated source of the libraries that Python 2.6 depends on.
 I downloaded mine from [[http://www.open.collab.net/downloads/subversion/]].

 1. Cvs Client<<BR>>
 Needed to get the latest version of the source for PyWin32.<<BR>>
 I downloaded mine from [[http://www.wincvs.org/]].

 1. Set up some scripts to help yourself.<<BR>>
 Make a windows shell script to setup your environment.<<BR>>
 Make a file named something like ''''''%USERPROFILE%\my_sage_env.cmd''''''.<<BR>>
 A good one to get started is something like:
{{{
echo off
cls
echo "Running CMD w/ special environment variables set..."
set PATH=%PATH%;%ProgramFiles%\GnuWin32\bin;%ProgramFiles%\CollabNet Subversion Client
echo on
}}}
 Make a shortcut to ''''''%SystemRoot%\System32\cmd.exe''''''. Then right click, select properties and on the Shortcut Tab, edit the Target field to:
{{{
D:\Windows\System32\cmd.exe /K %USERPROFILE%\my_sage_env.cmd
}}}