1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#! /usr/bin/env python
from distutils.core import setup, Extension
longdesc = """This is a simple SWIG wrapper on the main steering interface of
the LHAPDF parton density library. It is used to create, query and
use the LHAPDF data from a Python program.
"""
## Extension definition
import os
wrapsrc = '@srcdir@/lhapdf_wrap.cc'
incdir_src = os.path.abspath('@top_srcdir@/include')
incdir_build = os.path.abspath('@top_builddir@/include')
libdir = os.path.abspath('@top_builddir@/lib')
cxxargs = '@CXXFLAGS@'.split()
ldargs = '@LDFLAGS@'.split()
ext = Extension('_lhapdf',
[wrapsrc],
include_dirs=[incdir_src, incdir_build],
library_dirs=[libdir, os.path.join(libdir,'.libs')],
extra_compile_args = cxxargs,
extra_link_args = ldargs,
libraries=['LHAPDF'])
## Setup definition
setup(name = 'lhapdf',
version = '@PACKAGE_VERSION@',
#include_package_data = True,
ext_modules=[ext],
py_modules = ['lhapdf'],
author = ['Andy Buckley'],
author_email = 'andy@insectnation.org',
url = 'http://projects.hepforge.org/lhapdf/',
description = 'Rivet: a Python interface to the LHAPDF high-energy physics parton density library.',
long_description = longdesc,
keywords = 'generator montecarlo simulation data hep physics particle validation analysis tuning',
license = 'GPL',
)
|