-
Notifications
You must be signed in to change notification settings - Fork 0
/
HACKING
52 lines (35 loc) · 1.08 KB
/
HACKING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
How to Develop
==============
1. Install development tools
* CentOS 7
* using Python Imaging Library (PIL)
* using Pure Python PNG
* Mac OS X 10.10 Yosemite
2. Activate virtualenv
* using Python Imaging Library (PIL)
* using Pure Python PNG
Install development tools
-------------------------
### CentOS 7
$ yum -y install python-virtualenv
#### using Python Imaging Library (PIL)
$ yum -y install libjpeg-turbo libjpeg-turbo-devel libpng libpng-devel
$ yum -y install gcc
#### using Pure Python PNG (too slow, but portable)
nothing to do.
### Mac OS X 10.10 Yosemite
$ mkdir -p ~/usr/local/
$ vi ~/.bash_profile
PATH="~/usr/local/bin:${PATH}"
export PATH
PYTHONPATH="~/usr/local/lib/python2.7/site-packages"
export PYTHONPATH
$ . ~/.bash_profile
$ easy_install --prefix ~/usr/local pip-7.1.2.tar.gz
$ easy_install --prefix ~/usr/local virtualenv-13.1.2.tar.gz
Activate virtualenv
-------------------
### using Python Imaging Library (PIL)
$ . tools/install_venv
### using Pure Python PNG
$ . tools/install_venv_pymaging