Open keflavich opened 10 years ago
For the hpc compiler, remarkably, this worked?
PATH=/Users/adam/repos/hpc/bin/:/usr/bin:~/virtual-python/bin/:/bin FFLAGS='-m64 -fPIC' CFLAGS='-fno-strict-aliasing -fno-common -dynamic -m64 -g -O2' LDFLAGS='-m64 -undefined dynamic_lookup -bundle' python -c "import install_radex; install_radex.compile_radex(f77exec='/Users/adam/repos/hpc/bin/gfortran')"
Actually, the above didn't use the hpc compiler, but this did:
CC=/Users/adam/repos/hpc/bin/gcc PATH=/Users/adam/repos/hpc/bin/:~/virtual-python/bin/:/bin:/usr/bin FFLAGS='-m64 -fPIC' CFLAGS='-fno-strict-aliasing -fno-common -dynamic -m64 -g -O2' LDFLAGS='-m64 -undefined dynamic_lookup -bundle' python setup.py install_radex
which can be applied more generically as:
CC=gcc FFLAGS='-m64 -fPIC' CFLAGS='-fno-strict-aliasing -fno-common -dynamic -m64 -g -O2' LDFLAGS='-m64 -undefined dynamic_lookup -bundle' python setup.py install_radex
I'm trying to use pip install for pyradex, but it doesn't find the readme file and thus refuses to install. And when I go to the source where it takes the package from the readme file is missing. Maybe this could be added?
Thanks @RankkaApina - that should be raised as a different issue. It is probably a problem with the MANIFEST.in
file.
I've been attempting a series of different compilations.
If I use gfortran-4.2.3 with no -arch flags:
I get the error:
If I try:
there's a different error:
In fact, the only way I got it working with the regular, vanilla GCC-4.2.3 is:
Or, in other words, thoroughly ridiculous.