블로그 이미지
No pain, no gain!
lepoussin

Tag

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
  • total
  • today
  • yesterday
04-25 02:59
2007. 2. 6. 18:41 Language/Python

mingw32로 컴파일을 하기 위해서는

python setup.py build -cmingw32

위와 같이 옵션을 줘야 하나 C:\Python24\Lib\distutils\ccompiler.py 파일에서 아래 부분을 수정하면 편리하게 사용이 가능하다.

_default_compilers = (
    # Platform string mappings
    # on a cygwin built python we can use gcc like an ordinary UNIXish
    # compiler
    ('cygwin.*', 'unix'),
    ('os2emx', 'emx'),
    # OS name mappings
    ('posix', 'unix'),
    ('nt', 'msvc'),
    ('mac', 'mwerks'),
    )

msvc를 migw32로 변경하면 -c 옵션을 주지 않아도 자동적으로 mingw32로 컴파일을 하게 된다.

posted by lepoussin