1 | import os, string |
---|
2 | |
---|
3 | try: |
---|
4 | import distutils |
---|
5 | from distutils import sysconfig |
---|
6 | from distutils.command.install import install |
---|
7 | from distutils.core import setup, Extension |
---|
8 | except: |
---|
9 | raise SystemExit, "Distutils problem" |
---|
10 | |
---|
11 | tkversion = "__TK-VERSION__" |
---|
12 | prefix = "__PREFIX__" |
---|
13 | inc_dirs = [prefix + "/include"] |
---|
14 | lib_dirs = [prefix + "/lib"] |
---|
15 | libs = ["tcl" + tkversion, "tk" + tkversion] |
---|
16 | |
---|
17 | setup(name = "Tkinter", |
---|
18 | description = "Tk Extension to Python", |
---|
19 | |
---|
20 | ext_modules = [Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'], |
---|
21 | define_macros=[('WITH_APPINIT', 1)], |
---|
22 | include_dirs = inc_dirs, |
---|
23 | libraries = libs, |
---|
24 | library_dirs = lib_dirs)] |
---|
25 | ) |
---|