aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL.md
blob: 492c4dea965c91480db796f50122c5b5a36b1858 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# Mac OS X

## Dependencies

### Python 3

Learn more: https://docs.python.org/3

Install with [homebrew](http://brew.sh),

    sudo xcodebuild -license ;
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ;
    brew install python3 ;

### PyQt5

Learn more: https://www.riverbankcomputing.com/software/pyqt

Install with homebrew,

    brew install pyqt5 ;

### fontTools

Learn more: https://github.com/behdad/fonttools

    git clone --depth=1 https://github.com/behdad/fonttools ;
    cd fonttools/ ;
    sudo python3 setup.py install --record installed-files.txt ;

### RoboFab

Learn more: http://www.robofab.com

In particular, https://github.com/trufont/robofab/tree/python3-ufo3

    cd .. ;
    git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/robofab ;
    cd robofab ;
    sudo python3 setup.py install --record installed-files.txt ;

### defcon

Homepage: https://readthedocs.org/projects/ts-defcon

In particular, https://github.com/trufont/defcon/tree/python3-ufo3

    cd .. ;
    git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/defcon ;
    cd robofab ;
    sudo python3 setup.py install --record installed-files.txt ;

### ufo2fdk

Learn more: https://github.com/typesupply/ufo2fdk

In particular, https://github.com/trufont/ufo2fdk/tree/python3-ufo3

    cd .. ;
    git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/ufo2fdk ;
    cd ufo2fdk ;
    sudo python3 setup.py install --record installed-files.txt ;

### PyInstaller

Homepage: http://www.pyinstaller.org

    sudo pip install PyInstaller ;

## Trufont

Homepage: https://trufont.github.io

To install and run,

    cd .. ;
    git clone --depth=1 https://github.com/trufont/trufont ;
    cd trufont ;
    sudo python3 setup.py install --record installed-files.txt ;
    python3 -m defconQt ;

Or to then run from source,

    cd Lib/ ; 
    python3 -m defconQt ;

To build installation packages,

    cd Lib/ ;
    sh build.sh ;

Distribution packages will be placed in in `Lib/dist/`.
To build an installation package for Mac OS X 10.9, you must build the package on that version of the OS.

## Uninstall

Files are installed into `/usr/local/lib/python3.5/site-packages/` 

    sudo easy_install pip ;
    sudo pip uninstall robofab defcon defconQt ;

To get rid of all remaining files (be careful with rm!) for each package installed above,

    cat installed-files.txt | xargs sudo rm --verbose -vr

# Debian, Ubuntu

(Note that we are using Python 3.4)

## Dependencies

    sudo apt-get install -qq -y python3-pyqt5 python3-pyqt5.qtsvg python3-flake8 ;
    git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/defcon ;
    git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/robofab ;
    git clone --depth=1 --branch=python3-ufo3 https://github.com/trufont/ufo2fdk ;
    git clone --depth=1 https://github.com/behdad/fonttools.git ;

    cd defcon ;
    sudo python3.4 setup.py install --record installed-files.txt ;

    cd ../robofab ;
    sudo python3.4 setup.py install --record installed-files.txt ;

    cd ../ufo2fdk ;
    sudo python3.4 setup.py install --record installed-files.txt ;

    cd ../fonttools ;
    sudo python3.4 setup.py install --record installed-files.txt ;

## Trufont

To install and run,

    cd .. ;
    git clone --depth=1 https://github.com/trufont/trufont ;
    cd trufront ;
    sudo python3 setup.py install --record installed-files.txt ;
    python3 -m defconQt ;

Or to then run from source,

    cd Lib/ ; 
    python3 -m defconQt ;

## Uninstall

Files are installed into `/usr/local/lib/python3.4/dist-packages/`

These can be partially removed with pip,

    sudo apt-get install python3-pip ;
    sudo pip3 uninstall robofab defcon ufo2fdk ufoLib defconQt ;

To get rid of all remaining files (be careful with rm!) for each package installed above,

    cat installed-files.txt | xargs sudo rm --verbose -vr