Example #1
0
        print("If for some reason you cannot do it, you'll need to upgrade it")
        print("to latest version before proceeding:")
        print("    pip install -U distribute")
        sys.exit(1)
except pkg_resources.DistributionNotFound:
    pass  # yay!

VERSION = "4.0.dev0"

if os.path.exists("MANIFEST"):
    os.remove("MANIFEST")

with open("README.md") as file:
    long_description = file.read()

if check_for_openmp():
    omp_args = ["-fopenmp"]
else:
    omp_args = []

if os.name == "nt":
    std_libs = []
else:
    std_libs = ["m"]

if get_default_compiler() == "msvc":
    CPP14_FLAG = ["/std:c++14"]
else:
    CPP14_FLAG = ["--std=c++14"]

cythonize_aliases = {
Example #2
0
    with open(filename) as f:
        for line in f.readlines():
            if line.startswith("__version__"):
                return line.split("=")[1].strip()[1:-1]
    raise RuntimeError("Could not get version from %s." % filename)


VERSION = get_version("yt_astro_analysis/__init__.py")

if os.path.exists("MANIFEST"):
    os.remove("MANIFEST")

with open("README.md") as file:
    long_description = file.read()

if check_for_openmp() is True:
    omp_args = ["-fopenmp"]
else:
    omp_args = None

if os.name == "nt":
    std_libs = []
else:
    std_libs = ["m"]

cython_extensions = [
    Extension(
        "yt_astro_analysis.ppv_cube.ppv_utils",
        ["yt_astro_analysis/ppv_cube/ppv_utils.pyx"],
        libraries=std_libs,
    ),
Example #3
0
with open("README.md") as file:
    long_description = file.read()

CPP14_CONFIG = defaultdict(lambda: ["-std=c++14"], {
    "unix": ["-std=c++14"],
    "msvc": ["/std:c++14"]
})
CPP03_CONFIG = defaultdict(lambda: ["-std=c++03"], {
    "unix": ["-std=c++03"],
    "msvc": ["/std:c++03"]
})

_COMPILER = get_default_compiler()

omp_args, _ = check_for_openmp()

if os.name == "nt":
    std_libs = []
else:
    std_libs = ["m"]

CPP14_FLAG = CPP14_CONFIG[_COMPILER]
CPP03_FLAG = CPP03_CONFIG[_COMPILER]

cythonize_aliases = {
    "LIB_DIR":
    "yt/utilities/lib/",
    "LIB_DIR_EWAH": ["yt/utilities/lib/", "yt/utilities/lib/ewahboolarray/"],
    "LIB_DIR_GEOM": ["yt/utilities/lib/", "yt/geometry/"],
    "LIB_DIR_GEOM_ARTIO": [