-
Notifications
You must be signed in to change notification settings - Fork 58
Mac OS X
The installation process on Mac OS X includes the installation of:
- XCode
- Homebrew
- Python3
- Python Setuptools (Distribute and PIP)
- Jasy
Before installing Jasy you must install XCode to have all relevant developer tools like the GNU compilers ready on your system. XCode is available via the Mac App Store.
We suggest you installing Python3 via Homebrew. That installs a Python3 matching your XCode and system environment and makes installing native Python modules like PIL or Misaka possible. Open a terminal and execute the following command:
$ brew install python3
Python 3 is installed in parallel to Python2 (which is included in Mac OS since 10.5) and is made available on the command line as python3
. Scripts like jasy
are installed to /usr/local/share/python3
. You need to add it to your PATH
to make jasy
easily available. For details have a look at this documentation: https:/mxcl/homebrew/wiki/Homebrew-and-Python. Homebrew is typically installed in a folder which does not require admin rights. All further installations should happen without sudo
.
You need to install the package manager "PIP" to install Python packages. PIP requires Distribute being installed first. (See also: http://www.pip-installer.org/en/latest/installing.html)
Open a Terminal and execute the following commands:
$ cd ~/Downloads
$ curl http://python-distribute.org/distribute_setup.py | python3
$ curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python3
Now you should be able to install the current stable version of Jasy using pip . PIP is preferred over alternatives like easy_install
as it supports uninstalls and upgrades etc.
$ pip-3.2 install jasy
Try the following command on your console/terminal after installation is complete:
$ jasy
This should print out the help screen.
- Install libjpeg using Homebrew
- use pip to install a python3 port of PIL :
sudo pip-3.2 install -e git+git:/sloonz/pil-py3k.git#egg=pil