-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-packages-mac.txt
598 lines (437 loc) · 13.5 KB
/
setup-packages-mac.txt
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
Current Versions:
o XCode 4.5.2 + command line tools
o Python 2.7.9 or 3.4.2 (change "python3" to "python" in all commands below for python 2.x)
o pyserial 2.7
o QT 4.8.6
o SIP 4.16.3
o PyQt 4.11.2
o numpy 1.9.1RC1
o scipy 0.14.0
o matplotlib 1.4.2
o pyaudio 0.2.7
o minimalmodbus 0.6
o Phidgets Python 2.1.8
o pyobjc 2.5.1
o modulegraph >0.10.4 trunk (21.4.2013)
o distribute 0.6.36
o altgraph 0.10.2
o macholib 1.5.1
o py2app 0.9
o pymodbus 1.3.0
o yoctopuce 1.10.16490
o requests 2.3.0
o bottle 0.12.7
o gevent 1.0.1
o geventwebsocket 0.9.3
o appnope 0.1
o python-qrcode 5.1
Upgrade History:
- 2014-12-31
. python-qrcode 5.1
. Python 2.7.8 => 2.7.9
- 2014-11-07
. SIP 4.16.3 => 4.16.4
. PyQt 4.11.2 => 4.11.3
. numpy 1.9.1RC1 => 1.9.1
. bottle 0.12.7 => 0.13 trunk
- 2014-10-29
. numpy 1.8.0 => 1.9.1RC1
- 2014-10-26
. appnope 0.1
. matplotlib 1.3.1 => 1.4.2
- 2014-10-06
. requests 2.3.0
. bottle 0.12.7
. gevent 1.0.1
. geventwebsocket 0.9.3
- 2014-09-21
. SIP 4.16.2 => 4.16.3
. PyQt 4.11.1 => 4.11.2
- 2014-08-06
. numpy 1.8.1 => 1.8.2
. Python 2.7.6 => 2.7.8
. SIP 4.15.3 => 4.16.2
. PyQt 4.10.3 => 4.11.1
. py2app 0.8 => 0.9
. minimalmodbus 0.5 => 0.6
. added pymodbus 1.3.0
. added yoctopuce 1.10.16490
- 2014-05-04
. numpy 1.8.0 => 1.8.1
. scipy 0.13.3 => 0.14.0
. SIP 4.15.3 => 4.15.5
. QT 4.8.5 => 4.8.6
. PyQt 4.10.3 => PyQt 4.10.4
- 2014-04-02
. minimalmodbus 0.4 => 0.5
- 2014-03-17
. Python 3.3.4 => 3.3.5
. scipy 0.13.1 => 0.13.3
- 2014-03-04
. Python 3.3.3 => 3.3.4
- 2014-02-24
. py2app 0.7.3 => 0.8
- 2014-01-11:
. Phidgets Python 2.1.8 6/2013 => 2.1.8 7/2013
- 2013-11-12:
. scipy 0.13.1
. numpy 1.8.0
. Python 2.7.4 => 2.7.6
. QT 4.8.4 => 4.8.5
. PyQt 4.10.0 => 4.10.3
. SIP 4.14.5 => 4.15.3
- 2013-10-19:
. pyobjc 2.5.1 added
- 2013-10-17:
. matplotlib 1.2.1 => 1.3.1
- 2013-07-20:
. XCode 4.5.2 => 4.6.3
. Python 2.7.4 => 2.7.5
. Python 3.3.1 => 3.3.2
. Qt 4.8.4 => 4.8.5
. SIP 4.14.5 => 4.14.7
. PyQt 4.10.0 => 4.10.2
. Phidgets Python 2.1.8
- 2013-04-21:
. distribute 0.6.29 => 0.6.36
. macholib 1.5 => 1.5.1
. modulegraph 10.4 => trunk (21.4.2013)
. py2app 0.7.3 => trunk ((21.4.2013)
- 2013-04-12:
. Python 3.3.0 => 3.3.1
. numpy 1.7.0 => 1.7.1
. scipy 0.12.0b1 => 0.12.0
. matplotlib 1.2.0 => 1.2.1
. SIP 4.14.4 => 4.14.5
- 2013-03-14:
. nupmpy from trunk
. scipy 0.12.0b beta from git repository (25.1.2012) => 0.12.0b from trunk
- 2013-03-10:
. altgraph => 0.10.0 => 0.10.2
. modulegraph 0.10.0 => 0.10.4
. py2app 0.7.1 => 0.7.3
. Qt 4.8.4 (=> Qt 5.0.1 failed: Qt 5.0.1 crashs on builds)
. PyQt 4.9.6 => 4.10.0
. sip 4.14.2 => 4.14.4
. numpy 1.7rc1 => 1.7.0
- 2012-01-05:
. scipy 0.11.0 => scipy-0.12.0 beta from git repository
. numpy 1.7.0b2 => 1.7.0rc1 ++ from repository
- 2012-12-13:
. SIP 4.14.1 => 4.14.2
. PyQt 4.9.5 => 4.9.6
- 2012-07-12:
. QT 4.8.3 => 4.8.4
- 2012-11-30:
. py2app 0.7 => 0.7.1
. numpy >1.7.0b2 (27.10.2012) => 1.7.0b2 (30.11.2012)
- 2012-11-10:
. XCode => 4.5.1
. Python 3.3.0a3 => 3.3.0
. QT 4.8.1 => 4.8.3
. numpy 1.6.1 => 1.7.0b2
. SIP 4.13.3-snapshot => 4.14.1
. PyQt snapshot-4.9.2 => 4.9.5
. scipy 0.10.1 => 0.11.0
. modulegraph 0.8.2 => 0.10
. altgraph 0.10
. distribute 0.6.28 => 0.6.29
. macholib 1.5
. py2app 0.6.5 => 0.7
. minimalmodbus 0.3.2 => 0.4
. matplotlib 1.1.0 => 1.2.0
- 2012-05-17: Upgrade Python/QT/PyQt/SIP
. Python 3.3.0a1 => 3.3.0a3
. QT 4.8.0 => 4.8.1
. SIP 4.13.2 => 4.13.3-snapshot
- 2012-01-09: Upgrade Qt/PyQt/SIP
. QT 4.7.4 => 4.8.0
. SIP 4.13 => 4.13.2
. PyQt 4.8.6 => 4.9.1
. scipy 0.9.0 => 0.10.1
. py2app 0.6.3 => 0.6.5
. modbus_tk 0.4.2 => minimalmodbus 0.3.2
- 2011-11-26: Upgraded PyQt
. PyQt 4.8.5 => 4.8.6
. SIP 4.12.4 => 4.13
- 2011-10-09: Upgraded to QT 4.7.4 Cocoa (OS X 10.5. only)
. QT 4.7.3 => 4.7.4
. matplotlib 1.0.1 => 1.1.0
- 2011-08-07: Moved to OS X 10.7 and Upgraded
. PyQt 4.8.4 => 4.8.5
. SIP 4.12.3 => 4.12.4
. Mercurial 1.7.3 => 1.9.1
. modulegraph 0.8.2 => 0.9.2
- 2011-07-22: Upgraded
. Numpy 1.6.0 => 1.6.1
- 2011-06-30: Upgraded
. py2app 0.5.2 => 0.6.3
- 2011-06-28: Upgraded
. Python 2.7.1 => 2.7.2
- 2011-05-12: Upgraded
. Qt 4.7.2 => Qt 4.7.3
. Numpy 1.5.1 => 1.6.0
. SIP 4.12.1 => 4.12.3
. PyQt 4.8.3 => 4.8.4
Installation Instructions:
*) ensure to switch back to gcc-4.2 if you have a XCode 3/4 setup
sudo mv /usr/bin/cc /usr/bin/cc.off
sudo mv /usr/bin/gcc /usr/bin/gcc.off
sudo mv /usr/bin/c++ /usr/bin/c++.off
sudo mv /usr/bin/g++ /usr/bin/g++.off
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/cc
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/gcc
sudo ln -s /usr/bin/c++-4.2 /usr/bin/c++
sudo ln -s /usr/bin/g++-4.2 /usr/bin/g++
NOTE: if XCode is updated after a complete setup for Artisan, the SVG icons might disappear in that case, reinstalling QT helps
1) Install XCode 4.5.2
not needed anymore:
# sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer /Developer
install command line tools via Preferences/Downloads/Components
2) Install Python 3.3.5
download and install:
http://www.python.org/ftp/python/3.3.5/python-3.3.5-macosx10.6.dmg
set default to 64bit:
# defaults write com.apple.versioner.python Prefer-32-Bit -bool no
3) Install pyserial
download latest source (pyserial-2.6.tar.gz) from http://pypi.python.org/pypi/pyserial
# tar xzf pyserial-2.6.tar.gz
# cd pyserial-2.6
# python setup.py build
# sudo python setup.py install
new to v2.6:
# import serial.tools.list_ports.
# serial.tools.list_ports.comports()
4) Install QT ("Framework Only" without the debug libs and not the "SDK/Complete Component Environment")
download and install (only Mac OS X 10.5 - 10.6, 32-bit and 64-bit Intel!!):
qt-mac-opensource-4.8.6.dmg (OS X 10.6+, Cocoa, 64bit only)
or
qt-mac-opensource-5.0.1-clang-offline.dmg (OS X 10.6+, Cocoa, 64bit only)
Note: PyQt needs to be re-installed after a qt update
5) Install SIP
# tar xzf sip-4.15.3.tar.gz
# cd sip-4.15.3
# python configure.py
# make
# sudo make install
6) Install PyQt
# tar xzf PyQt-mac-gpl-4.10.4.tar.gz
# cd PyQt-mac-gpl-4.10.4
# python configure.py
use: "python configure.py -q /Users/<username>/Qt5.0.1/5.0.1/clang_64/bin/qmake"
# make
# sudo make install
7) Install Numpy
download source
# git clone https://github.com/numpy/numpy.git
# cd numpy
# python setup.py build
# sudo python setup.py install
NOTE: always remove the build directory completely before recompiling
8) scipy from git repository
# git clone git://github.com/scipy/scipy.git scipy
# cd scipy
# python setup.py build
# sudo python setup.py install
NOTE: always remove the build directory completely before recompiling
check installation:
# python
>> import scipy
>> scipy.__version__
>> scipy.__file__
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/scipy/weave/catalog.py", line 107
fname = base + `i`
^
SyntaxError: invalid syntax
fix:
fname = base + repr(i)
=>
fname = base + str(repr(i))
9) Install matplotlib
9.1) install freetype and libpng dependencies
installed homebrew via
# ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
# brew doctor
installed matplotlib dependencies before its compilation via
# brew install libpng freetype
# sudo mv /usr/local/include/freetype2 freetype2.off
# sudo mv /usr/local/bin/freetype-config /usr/local/bin/freetype-config.org
# sudo mv /usr/local/share/aclocal/freetype2.m4 /usr/local/share/aclocal/freetype2.m4.org
# sudo mv /usr/local/lib/pkgconfig/freetype2.pc /usr/local/lib/pkgconfig/freetype2.pc.org
# sudo mv /usr/local/lib/libfreetype.dylib /usr/local/lib/libfreetype.dylib.org
# sudo mv /usr/local/lib/libfreetype.a /usr/local/lib/libfreetype.a.org
# sudo mv /usr/local/lib/libfreetype.6.dylib /usr/local/lib/libfreetype.6.dylib.org
# brew link freetype
# brew install pkg-config
9.2) Install matplotlib library
download matplotlib-1.2.1.tar.gz
# tar -xzf matplotlib-1.2.1.tar.gz
# cd matplotlib-1.2.1
# python setup.py build
# sudo python setup.py install
to make builds smaller:
# sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/mpl-data/sample_data
to avoid conflicts with py2app
# sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/tests
---
Using matplotlib 1.2 within pyqt on Python 3.3 I receive (on click on the greenflag button and leaving the dialog with OK)
NOTE: this is fixed in matplotlib 1.3.1
formlayout.py", line 343, in get
value = float(field.text())
TypeError: float() argument must be a string or a number
That does not happen under Python 2.7.
Modifying that line in lib/matplotlib/backends/qt4_editor/formlayout.py by wrapping the field.text() into a str() like
value = float(str(field.text()))
solves this (change 2x in src folder).
NOTE: to clean build dir use "python setup.py clean --all"
---
check installation:
# python
>> import matplotlib
>> matplotlib.__version__
'1.2.0rc2
10) PortAudio
# mkdir PortAudio-19
# cd PortAudio-19
# curl -O http://www.portaudio.com/archives/pa_stable_v19_20111121.tgz
# tar -xzf pa_stable_v19_20111121.tgz
# cd portaudio
# ./configure
# vi Makefile
all: lib/$(PALIB) all-recursive test examples selftests
=>
all: lib/$(PALIB) all-recursive examples selftests
# make
# sudo make install
11) pyaudio
# mkdir pyaudio-0.2.8
# cd pyaudio-0.2.8
# git clone https://github.com/bastibe/PyAudio.git
# cd PyAudio
Download and extract PortAudio pa_stable_v19_20140130.tgz from http://www.portaudio.com/download.html
# cp ../portaudio/include/pa_mac_core.h src/
# cp ../portaudio/include/portaudio.h src/
# vi src/pa_mac_core.h
-#include <AudioUnit/AudioUnit.h>
-#include <AudioToolbox/AudioToolbox.h>
+#include <CoreAudio/CoreAudio.h>
# python setup.py build
# sudo python setup.py install
12) minimalmodbus (v0.6)
download from http://pypi.python.org/pypi/MinimalModbus/
# tar -xzf MinimalModbus-0.5.tar.gz
# cd MinimalModbus-0.5
# python setup.py build
# sudo python setup.py install
13) Install modulegraph
fetch modulegraph 0.10.2 from
http://pypi.python.org/pypi/modulegraph/#downloads
# cd modulegraph-0.10.2
# python setup.py build
# sudo python setup.py install
from source (not needed):
# mkdir modulegraph-0.10
# cd modulegraph-0.10
# hg clone https://bitbucket.org/ronaldoussoren/modulegraph
# cd modulegraph
# python setup.py build
# sudo python setup.py install
14) Install distribute 0.6.36
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.36.tar.gz
# curl -O http://pypi.python.org/packages/source/d/distribute/distribute-0.6.36.tar.gz
# tar -xzvf distribute-0.6.36.tar.gz
# cd distribute-0.6.36
# python setup.py build
# sudo python setup.py install
15) Install altgraph
# mkdir altgraph-0.10
# cd altgraph-0.10
# hg clone https://bitbucket.org/ronaldoussoren/altgraph
# cd altgraph
# python setup.py build
# sudo python setup.py install
16) Install macholib
# mkdir macholib-1.5
# cd macholib-1.5
# hg clone https://bitbucket.org/ronaldoussoren/macholib
# cd macholib
# python setup.py build
# sudo python setup.py install
17) py2app (0.7.1 from source)
from repository
# hg clone https://bitbucket.org/ronaldoussoren/py2app
# cd py2app
# python setup.py build
# sudo python setup.py install
from release downloaded from http://pypi.python.org/pypi/py2app/
# tar -xzf py2app-0.7.3.tar.gz
# cd py2app-0.7.3
# python setup.py build
# sudo python setup.py install
18) Install pyemf-2.0.0.tar.gz (only Python 2; fails on Python 3)
# python setup.py build
# sudo python setup.py install
XX) cx_freeze
export CC=clang
export CXX=clang
export FFLAGS=-ff2c
export LDSHARED='clang -bundle -undefined dynamic_lookup -arch i386 -arch
x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -g'
# python setup.py build
# python setup.py install
19) Install Phidgets Python
# unzip PhidgetsPython_2.1.8.20130820.zip
# cd PhidgetsPython
# python setup.py build
# python setup.py install
20) Install pyobjc
(see http://www.albrecht.lt/2013/09/nsconcretemaptable-error/ and http://meme.biology.tohoku.ac.jp/students/iwasaki/python/pyqt.html)
Download pyobjc-core-2.5.1.tar.gz, pyobjc-framework-Cocoa-2.5.1.tar.gz, pyobjc-framework-Quartz-2.5.1.tar.gz
from http://pythonhosted.org/pyobjc/
a) install pyobjc-core
# python setup.py build
# sudo python setup.py install
b) install pyobjc-framework-Cocoa
# python setup.py build
# sudo python setup.py install
c) install pyobjc-framework-Quartz
# python setup.py build
# sudo python setup.py install
21) pymodbus
download from https://github.com/bashwork/pymodbus
# cd pymodbus
# python setup.py build
# sudo python setup.py install
22) yoctopuce 1.10.16490
download lastest package from here:
https://pypi.python.org/pypi/yoctopuce/
# cd yoctopuce-1.10.16490
# python setup.py build
# sudo python setup.py install
copy shared libs
# sudo mkdir /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/yoctopuce/cdll
# sudo cp yoctopuce/cdll/* /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/yoctopuce/cdll
23) requests 2.3.0
https://github.com/kennethreitz/requests/releases
# python setup.py build
# sudo python setup.py install
24) bottle 0.12.7
https://github.com/defnull/bottle/releases
# python setup.py build
# sudo python setup.py install
25) gevent 1.0.1
https://pypi.python.org/pypi/gevent
# python setup.py build
# sudo python setup.py install
26) geventwebsocket 0.9.3
https://pypi.python.org/pypi/gevent-websocket/
# python setup.py build
# sudo python setup.py install
27) appnope 0.1
https://github.com/minrk/appnope
# python setup.py build
# sudo python setup.py install
28) python-qrcode
https://github.com/lincolnloop/python-qrcode
# python setup.py build
# sudo python setup.py install