namespace build

build

Attributes

Name
srcdir
Build dirs.
libdir
listincdirs
listlookupdirs
Library-search dirs.
stringsrcpath
The extension source file (built by separate Cython call) TODO: Move the Cython call in here, via Cython API?
stringincargs
Include args.
stringcmpargs
Compile args.
stringlinkargs
Link args – base on install-prefix, or on local lib dirs for pre-install build.
listlibraries
This needs to be passed separately on Mac, otherwise HepMC3 library won’t be found.
stringlibargs
stringpyargs
Python compile/link args.
listlibpys
libpy
stringcompile_cmd
Assemble the compile & link command.
cwd

Attributes Documentation

variable srcdir

srcdir =  os.path.abspath("/home/anarendran/Documents/temp/rivet/src");

Build dirs.

variable libdir

libdir =  os.path.abspath("/home/anarendran/Documents/temp/rivet/src/.libs");

variable incdirs

list incdirs =  [os.path.abspath("/home/anarendran/Documents/temp/rivet/include"),
           os.path.abspath("/home/anarendran/Documents/temp/rivet/include"),
           os.path.abspath("/home/anarendran/Documents/temp/rivet/pyext/rivet"),
           os.path.abspath("/home/anarendran/Documents/temp/rivet/pyext/rivet")];

variable lookupdirs

list lookupdirs =  ["/home/anarendran/Documents/temp/local/lib64"];

Library-search dirs.

variable srcpath

string srcpath =  '/home/anarendran/Documents/temp/rivet/pyext/rivet/core.cpp';

The extension source file (built by separate Cython call) TODO: Move the Cython call in here, via Cython API?

variable incargs

string incargs =  " ".join("-I{}".format(d) for d in incdirs);

Include args.

variable cmpargs

string cmpargs =  "-O2 -Wno-unused-but-set-variable -Wno-sign-compare";

Compile args.

variable linkargs

string linkargs =  " ".join("-L{}".format(d) for d in lookupdirs);

Link args – base on install-prefix, or on local lib dirs for pre-install build.

variable libraries

list libraries =  ["HepMC3"];

This needs to be passed separately on Mac, otherwise HepMC3 library won’t be found.

Library args

variable libargs

string libargs =  " ".join("-l{}".format(l) for l in libraries);

variable pyargs

string pyargs =  "-I" + sysconfig.get_config_var("INCLUDEPY");

Python compile/link args.

variable libpys

list libpys =  [os.path.join(sysconfig.get_config_var(ld), sysconfig.get_config_var("LDLIBRARY")) for ld in ["LIBPL", "LIBDIR"]];

variable libpy

libpy =  None;

variable compile_cmd

string compile_cmd =  "  ".join([os.environ.get("CXX", "g++"), "-shared -fPIC", "-o core.so",
                         srcpath, incargs, cmpargs, linkargs, libargs, pyargs]);

Assemble the compile & link command.

variable cwd

cwd;

Updated on 2022-08-07 at 20:46:08 +0100