From 3285b4b52d7b5faf9dc08f1fe4d9ac865b7548d7 Mon Sep 17 00:00:00 2001 From: jvr Date: Thu, 9 Aug 2001 18:47:22 +0000 Subject: [PATCH] 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 --- install.py | 17 ----------------- setup.py | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 17 deletions(-) delete mode 100644 install.py create mode 100755 setup.py diff --git a/install.py b/install.py deleted file mode 100644 index 598491065..000000000 --- a/install.py +++ /dev/null @@ -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() diff --git a/setup.py b/setup.py new file mode 100755 index 000000000..7601f3d31 --- /dev/null +++ b/setup.py @@ -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=[], + ) + ] + + ) +