UKZN-Astronomy / corrcal

Python/C code for calibration of quasi-redundant arrays. Different (fixed) algorithm from original corrcal
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Need setup script #10

Closed piyanatk closed 4 years ago

piyanatk commented 5 years ago

We need to write a setup.py script with distutils so that the package can be built and installed in a Python environment. This will remove to need to manually compile the C library reported in issue #9 too.

piyanatk commented 5 years ago

This is done in 7eb6f4256aeda4c122f916dae0d5f3862e755794. You can now clone the repository and do,

python setup.py install

This will build and install corrcal as an egg cache in the site-packages directory of your python environment. The C codes will be compiled as libcorrcall.<system suffix>.so, placed in the egg cache, and automatically load into ctypes.CDLL object when you import corrcal (see 7eb6f4256aeda4c122f916dae0d5f3862e755794).

piyanatk commented 5 years ago

@ronniyjoseph Can you test the codes?

piyanatk commented 4 years ago

Done in 74451fb2.