Removed obsolete install.py script, and replaced it with a
proper setup.py, offering full distutils support. So far only tested under MacOS. git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@140 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
30dae0d179
commit
3285b4b52d
17
install.py
17
install.py
@ -1,17 +0,0 @@
|
|||||||
#! /usr/bin/env python
|
|
||||||
|
|
||||||
import sys, os
|
|
||||||
|
|
||||||
ttlibdir = os.path.join(os.getcwd(), "Lib")
|
|
||||||
|
|
||||||
if sys.platform not in ('win32', 'mac'):
|
|
||||||
libdir = os.path.join(sys.exec_prefix,
|
|
||||||
'lib',
|
|
||||||
'python' + sys.version[:3],
|
|
||||||
'site-packages')
|
|
||||||
else:
|
|
||||||
libdir = sys.exec_prefix
|
|
||||||
pth_path = os.path.join(libdir, "FontTools.pth")
|
|
||||||
pth_file = open(pth_path, "w")
|
|
||||||
pth_file.write(ttlibdir + '\n')
|
|
||||||
pth_file.close()
|
|
37
setup.py
Executable file
37
setup.py
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#! /usr/bin/env python
|
||||||
|
|
||||||
|
import os, sys
|
||||||
|
from distutils.core import setup, Extension
|
||||||
|
|
||||||
|
|
||||||
|
setup( name = "FontTools",
|
||||||
|
version = "1.0",
|
||||||
|
description = "FontTools",
|
||||||
|
author = "Just van Rossum",
|
||||||
|
author_email = "just@letterror.com",
|
||||||
|
url = "http://fonttools.sourceforge.net/",
|
||||||
|
|
||||||
|
packages = [
|
||||||
|
"",
|
||||||
|
"fontTools",
|
||||||
|
"fontTools.encodings",
|
||||||
|
"fontTools.misc",
|
||||||
|
"fontTools.ttLib",
|
||||||
|
"fontTools.ttLib.tables",
|
||||||
|
"fontTools.ttLib.test",
|
||||||
|
],
|
||||||
|
package_dir = {'': 'Lib'},
|
||||||
|
extra_path = 'FontTools',
|
||||||
|
ext_modules = [
|
||||||
|
Extension(
|
||||||
|
"eexecOp",
|
||||||
|
["Src/eexecOp/eexecOpmodule.c"],
|
||||||
|
include_dirs=[],
|
||||||
|
define_macros=[],
|
||||||
|
library_dirs=[],
|
||||||
|
libraries=[],
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user