-
Notifications
You must be signed in to change notification settings - Fork 9
Manual Installation (macOS)
Below are the step-by-step instructions for installing the pipeline on macOS (OS X), as an alternative to the package installation with pip
or python setup.py
.
The instructions below are also provided as an automated bash script, however preliminary steps 1. and 2. below are still required.
-
Download and Install Xcode from the AppStore
-
Once you have Xcode installed, open a terminal, run
xcode-select --install
See here for more information.
While macOS already ships with Python, we recommend to get the current stable production version. This can be done with MacPorts. Otherwise, jump to step 3.
-
In the terminal, run
sudo port selfupdate
to update MacPorts's list of Portfiles -
To install Python, run
sudo port install python27
-
Finally, we need
pip
to installastropy
and other Python packages. In the terminal, runsudo easy_install pip
Note: If easy_install
is not found, run curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python
and repeat the last step.
- Before installing the Python packages, run the following command to upgrade
pip
python -m pip install --upgrade pip
- Run the following list of commands to install all the required packages:
pip install --user numpy scipy matplotlib
pip install --user pyfits
pip install --user --no-deps astropy
Note 1: It's recommended to set the --user
flag to install the packages for the local user only. Alternatively, you can perform a systemwide installation with MacPorts.
Note 2: The --no-deps
flag is set to tell pip to not upgrade numpy when installing astropy.
- If you haven't yet, ensure that MacPorts is up-to-date
sudo port selfupdate
- Install the ATLAS library
sudo port install atlas +nofortran
WARNING: this will take several hours, and is best done overnight.
- Run the following list of commands to install the AstrOmatic software:
sudo port install sextractor
sudo port install swarp
sudo port install scamp
sudo port install missfits
sudo port install cdsclient
- Clone the repository
git clone [email protected]:maxperry/photometrypipeline.git
- Use the provided make_config script to create a configuration file and set the paths to the AstrOmatic software, as well as other default parameters
cd photometrypipeline
sh ./make_config.sh
The configuration file will be saved to photometrypipeline/photometrypipeline/reduction/auto/pipeautoproc.par
where the first component of the path is the repository's root directory.