You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
642 B
23 lines
642 B
from distutils.core import setup
|
|
from Cython.Build import cythonize
|
|
import subprocess
|
|
import sys
|
|
|
|
def call_command(command):
|
|
l = command.split()
|
|
try:
|
|
result = subprocess.check_output(l)
|
|
except OSError as e:
|
|
print("Could not call %s: %s.\n"
|
|
"Please make sure the relevant command is installed."
|
|
% (l[0], e.strerror) )
|
|
sys.exit(1)
|
|
return result.decode().rstrip()
|
|
|
|
setup(
|
|
name = 'qcdloop',
|
|
author = 'Stefano Carrazza et al.',
|
|
author_email = 'stefano.carrazza@cern.ch',
|
|
version = call_command('qcdloop-config --version'),
|
|
ext_modules = cythonize('*.pyx'),
|
|
)
|