Skip to content

Instantly share code, notes, and snippets.

@mmlin
Created July 1, 2011 19:57
Show Gist options
  • Select an option

  • Save mmlin/1059280 to your computer and use it in GitHub Desktop.

Select an option

Save mmlin/1059280 to your computer and use it in GitHub Desktop.

Revisions

  1. mmlin revised this gist Jul 1, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion easy_install and MinGW
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ PREPARE
    > mingw-get install gcc
    > mingw-get install mingw-utils

    Create an import library for MinGW gcc
    Create an import library for MinGW gcc (http://mercurial.selenic.com/wiki/BuildingOnWindows)

    > cd c:\python26\libs
    > pexports c:\windows\system32\python26.dll > python26.def
  2. mmlin revised this gist Jul 1, 2011. 1 changed file with 16 additions and 2 deletions.
    18 changes: 16 additions & 2 deletions easy_install and MinGW
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,26 @@
    Here's how I installed hg-git on Windows using the MinGW compiler.

    PREPARE
    -------

    - Install Python (http://www.activestate.com/activepython/downloads)
    - Install the Python package manager, setuptools (http://pypi.python.org/pypi/setuptools)
    - Install the C compiler, MinGW gcc (http://www.mingw.org/wiki/Getting_Started)
    - Install the MinGW installer (http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get/)
    - Install the C compiler, MinGW gcc, and a utility, pexports, to help create the import library

    > mingw-get install gcc
    > mingw-get install mingw-utils

    Create an import library for MinGW gcc

    > cd c:\python26\libs
    > pexports c:\windows\system32\python26.dll > python26.def
    > dlltool -C -d python26.def -l libpython26.a
    > nm libpython26.a # shows you the exported symbols with "I" (as import symbol)

    - Configure the package manager to use the new C compiler

    In C:\Python26\Lib\distutils, create distutils.cfg with this content:
    In C:\Python26\Lib\distutils\, create distutils.cfg with this content:

    [build]
    compiler=mingw32
  3. mmlin created this gist Jul 1, 2011.
    33 changes: 33 additions & 0 deletions easy_install and MinGW
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    PREPARE
    -------

    - Install Python (http://www.activestate.com/activepython/downloads)
    - Install the Python package manager, setuptools (http://pypi.python.org/pypi/setuptools)
    - Install the C compiler, MinGW gcc (http://www.mingw.org/wiki/Getting_Started)
    - Configure the package manager to use the new C compiler

    In C:\Python26\Lib\distutils, create distutils.cfg with this content:

    [build]
    compiler=mingw32


    INSTALL (http://hg-git.github.com/)
    -----------------------------------

    > easy_install hg-git
    > cd %USERPROFILE%
    > notepad .hgrc

    [extensions]
    hgext.bookmarks =
    hggit = C:\Python26\Lib\site-packages\hg_git-0.2.6-py2.6.egg\hggit


    USE (http://hg-git.github.com/)
    -------------------------------

    $ cd hg-git # (a Mercurial repository)
    $ hg bookmark -r default master # make a bookmark of master for default, so a ref gets created
    $ hg push git+ssh://git@github.com/schacon/hg-git.git
    $ hg push