diff options
author | Johann Visagie <wjv@FreeBSD.org> | 2001-09-06 14:15:37 +0000 |
---|---|---|
committer | Johann Visagie <wjv@FreeBSD.org> | 2001-09-06 14:15:37 +0000 |
commit | ad6b729c660de06984c1d2759a630ee09f9e052f (patch) | |
tree | d264a13184bb7f61fc1d761b5b6cf65ee6bd55f9 /lang/py-compiler/files/setup.py | |
parent | Upgrade to version 3.9.8. (diff) |
Add py-compiler, a Python source to bytecode compiler.
Notes
Notes:
svn path=/head/; revision=47473
Diffstat (limited to 'lang/py-compiler/files/setup.py')
-rw-r--r-- | lang/py-compiler/files/setup.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/py-compiler/files/setup.py b/lang/py-compiler/files/setup.py new file mode 100644 index 000000000000..402918ee225c --- /dev/null +++ b/lang/py-compiler/files/setup.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python +# To use: +# python setup.py install +# + +__version__ = "$FreeBSD: /tmp/pcvs/ports/lang/py-compiler/files/Attic/setup.py,v 1.1 2001-09-06 14:15:37 wjv Exp $" + +try: + import distutils + from distutils import sysconfig + from distutils.command.install import install + from distutils.core import setup, Extension +except: + raise SystemExit, "Distutils problem" + +prefix = sysconfig.PREFIX +inc_dirs = [prefix + "/include"] +lib_dirs = [prefix + "/lib"] +libs = ["expat"] + +setup(name = "pyexpat", + description = "Interface to the Expat XML parser", + + ext_modules = [Extension("pyexpat", ["pyexpat.c"], + include_dirs = inc_dirs, + define_macros = [("HAVE_EXPAT_H", 1)], + libraries = libs, + library_dirs = lib_dirs)] + ) |