mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
1c6cc68498
the Python distribution.
31 lines
727 B
Python
31 lines
727 B
Python
#!/usr/bin/env python
|
|
# To use:
|
|
# python setup.py install
|
|
#
|
|
|
|
__version__ = "$FreeBSD$"
|
|
|
|
import os, string
|
|
|
|
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 = ["gmp"]
|
|
|
|
setup(name = "mpz",
|
|
description = "GMP extension to Python",
|
|
|
|
ext_modules = [Extension('mpz', ['mpzmodule.c'],
|
|
include_dirs = inc_dirs,
|
|
libraries = libs,
|
|
library_dirs = lib_dirs)]
|
|
)
|