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:
jvr 2001-08-09 18:47:22 +00:00
parent 30dae0d179
commit 3285b4b52d
2 changed files with 37 additions and 17 deletions

View File

@ -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
View 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=[],
)
]
)