# hack as install_header setup target doesn't seem to work # numpy-1.6.1/build/src.linux-x86_64-2.6/numpy/core/include/ def callback(): bdistdir = glob.glob('%s/build/src*' % builder._package) if os.path.exists(bdistdir[0]): incdir = os.path.join(bdistdir[0], 'numpy', 'core', 'include') if not os.path.exists('install/include'): shutil.copytree(incdir, 'install/include') platform = utils.get_platform() builder = Builder() builder.remote_archive = "numpy-1.12.0.tar.gz" if platform['system'] == 'Darwin': builder.add_option('CFLAGS="-framework Accelerate"') else: blas = builder.dep.get_install_path("blas") lapack = builder.dep.get_install_path("lapack") blaslib = os.path.join(blas, 'lib', 'libblas.a') lapacklib = os.path.join(lapack, 'lib', 'liblapack.a') builder.add_env("BLAS", blaslib) builder.add_env("LAPACK", lapacklib) builder.add_file("files/site.cfg") builder.add_postcallback(callback) builder.nowarnings = True builder.build()
from askapdev.rbuild.builders import Setuptools as Builder builder = Builder() builder.remote_archive = "pylint-0.14.0.tar.gz" builder.add_file("setupegg.py") builder.nowarnings = True builder.build()