|
1 ==================== |
|
2 Readme for Mac usage |
|
3 ==================== |
|
4 |
|
5 This Readme file describes how to prepare a Mac computer for eric. The |
|
6 recommended way to do this is to install the software packages from the |
|
7 distributors web pages. Because some software is only available as source |
|
8 and compilation is a bit tricky because of the dependencies, these packages |
|
9 should be installed via a packaging system. The recommended one is MacPorts |
|
10 because of it's completeness. This is the way described below. |
|
11 |
|
12 |
|
13 1. Install Xcode |
|
14 ---------------- |
|
15 Open the Mac App Store and enter "xcode" into the search entry at the top |
|
16 right of the window. From the list of results select the Xcode entry. Xcode |
|
17 is provided free of charge. On the Xcode page select the button to get the |
|
18 package. Follow the usual procedure to start the download. Once the download |
|
19 has finished open the applications folder and select the "Install Xcode" entry. |
|
20 In contrast to the Xcode 3 procedure described above, the installer does not |
|
21 ask for a selection of sub-packages. |
|
22 |
|
23 |
|
24 2. Install Python 3.4 |
|
25 --------------------- |
|
26 Although Mac OS X comes with a python installation it is recommended to |
|
27 install the python package provided by the Python community. Download it |
|
28 from |
|
29 |
|
30 http://www.python.org/download/ |
|
31 |
|
32 After the download finished open the downloaded package and install it. |
|
33 |
|
34 Note: The Python documentation can be found in these locations |
|
35 |
|
36 /Library/Frameworks/Python.framework/Versions/3.4/Resources/English.lproj/Documentation/index.html |
|
37 /Applications/Python 3.4/Python Documentation.html |
|
38 |
|
39 3. Install Qt5 |
|
40 -------------- |
|
41 Download the Qt5 package from |
|
42 |
|
43 http://www.qt.io/download/ |
|
44 |
|
45 After the download finished open the downloaded package and install it. The |
|
46 tools (e.g. Designer, Linguist) can be found in the location |
|
47 |
|
48 | ˜/Qt<version>/<version>/<compiler>/bin |
|
49 | e.g. ˜/Qt5.3.0/5.3.0/clang_64/bin |
|
50 |
|
51 The documentation can be found in these locations |
|
52 |
|
53 ˜/Qt<version>/<version>/<compiler>/qtdoc (HTML format) |
|
54 ˜/Qt<version>/<version>/<compiler>/ (QtHelp format) |
|
55 |
|
56 The translation files can be found in this location |
|
57 |
|
58 ˜/Qt<version>/<version>/<compiler>//translations |
|
59 |
|
60 |
|
61 4. Install QScintilla2 |
|
62 ---------------------- |
|
63 Download the QScintilla2 source code package from |
|
64 |
|
65 http://www.riverbankcomputing.com/software/qscintilla/download |
|
66 |
|
67 After the download has finished open a Finder window and extract the downloaded |
|
68 archive in the Downloads folder (or any other folder of your choice). Change to |
|
69 the Qt4Qt5 directory within the extracted folder and enter these commands in a |
|
70 terminal window |
|
71 |
|
72 :: |
|
73 |
|
74 qmake qscintilla.pro |
|
75 make -j x (number of cores including hyper threaded ones) |
|
76 sudo make install |
|
77 |
|
78 |
|
79 5. Install sip |
|
80 -------------- |
|
81 Download the sip source code package from |
|
82 |
|
83 http://www.riverbankcomputing.com/software/sip/download |
|
84 |
|
85 After the download has finished open a Finder window and extract the downloaded |
|
86 archive in the Downloads folder (or any other folder of your choice). Change to |
|
87 the extracted folder and enter these commands in a terminal window |
|
88 |
|
89 :: |
|
90 |
|
91 python3 configure.py |
|
92 make -j x (number of cores including hyper threaded ones) |
|
93 sudo make install |
|
94 |
|
95 |
|
96 6. Install PyQt5 |
|
97 ---------------- |
|
98 Download the PyQt5 source code package from |
|
99 |
|
100 http://www.riverbankcomputing.com/software/pyqt/download5 |
|
101 |
|
102 After the download has finished open a Finder window and extract the downloaded |
|
103 archive in the Downloads folder (or any other folder of your choice). Change to |
|
104 the extracted folder and enter these commands in a terminal window |
|
105 |
|
106 :: |
|
107 |
|
108 python3 configure.py -c -j x (number of cores including hyper threaded ones) |
|
109 make -j x (number of cores including hyper threaded ones) |
|
110 sudo make install |
|
111 |
|
112 |
|
113 7. Install QScintilla2 Python bindings |
|
114 -------------------------------------- |
|
115 Change back to the extracted QScintilla2 directory and in there change to the |
|
116 Python subdirectory. Enter these commands in a terminal window |
|
117 |
|
118 :: |
|
119 |
|
120 python3 configure.py --pyqt=PyQt5 -c -j x (number of cores including hyper threaded ones) |
|
121 make -j x (number of cores including hyper threaded ones) |
|
122 sudo make install |
|
123 |
|
124 |
|
125 8. Install MacPorts |
|
126 ------------------- |
|
127 MacPorts is a packaging system for the Mac. I recommend to install it to use |
|
128 some applications and libraries, that are a bit tricky to compile from source |
|
129 or for which the supplier doesn't offer ready built Mac OS X packages. In order |
|
130 to install MacPorts get the proper disk image (for Lion or Snow Leopard) from |
|
131 |
|
132 http://www.macports.org/install.php |
|
133 |
|
134 and install it with the usual procedure. You may read about it's usage via |
|
135 |
|
136 http://guide.macports.org/#using.port |
|
137 |
|
138 For a recipe on how to update MacPorts and the installed ports see the end |
|
139 of this file (Appendix A) |
|
140 |
|
141 |
|
142 9. Install aspell and dictionaries |
|
143 ----------------------------------- |
|
144 eric6 includes the capability to perform spell checking of certain parts of |
|
145 the sources. This is done via enchant which works with various spell checking |
|
146 libraries as it's backend. It depends upon aspell and hunspell. In order to |
|
147 install aspell enter this command in a terminal window |
|
148 |
|
149 :: |
|
150 |
|
151 sudo port install aspell |
|
152 |
|
153 This installs aspell and a bunch of dependancies. Once aspell has been installed |
|
154 install the dictionaries of your desire. To get a list of available dictionaries |
|
155 enter |
|
156 |
|
157 :: |
|
158 |
|
159 port search aspell-dict |
|
160 |
|
161 Then install them with a command like this |
|
162 |
|
163 :: |
|
164 |
|
165 sudo port install aspell-dict-de aspell-dict-en |
|
166 |
|
167 |
|
168 10. Install hunspell and dictionaries |
|
169 ------------------------------------- |
|
170 pyenchant depends on hunspell as well. Enter these commands to install it |
|
171 |
|
172 :: |
|
173 |
|
174 sudo port install hunspell |
|
175 |
|
176 This installs hunspell and a bunch of dependancies. Once hunspell has been |
|
177 installed, install the dictionaries of your desire. To get a list of hunspell |
|
178 dictionaries enter |
|
179 |
|
180 :: |
|
181 |
|
182 port search hunspell-dict |
|
183 |
|
184 Then install them with a command like this |
|
185 |
|
186 :: |
|
187 |
|
188 sudo port install hunspell-dict-de_DE |
|
189 |
|
190 replacing the 'de_DE' part with the language code of your desire. |
|
191 |
|
192 |
|
193 11. Install enchant |
|
194 ------------------- |
|
195 In order to install enchant and penchant via MacPorts enter these commands |
|
196 |
|
197 :: |
|
198 |
|
199 sudo port install enchant |
|
200 |
|
201 |
|
202 12. Install pyenchant |
|
203 --------------------- |
|
204 Install ``pyenchant`` using the ``pip`` utility. To do this just enter this |
|
205 in a console window |
|
206 |
|
207 :: |
|
208 |
|
209 sudo pip3 install pyenchant |
|
210 |
|
211 In order to test, if everything worked ok open a Python shell and enter |
|
212 these commands |
|
213 |
|
214 >>> import enchant |
|
215 >>> enchant.list_dicts() |
|
216 |
|
217 If you get an error (ImportError for the first command or no dictionaries |
|
218 are show for the second command) please recheck the installation checks. |
|
219 |
|
220 |
|
221 13. Install pysvn |
|
222 ----------------- |
|
223 Mac OS X already provides subversion. However, best performance for eric6 is |
|
224 gained with the pysvn interface to subversion. Therefore it is recommended to |
|
225 install pysvn. Get pysvn via |
|
226 |
|
227 http://pysvn.tigris.org/project_downloads.html |
|
228 |
|
229 After the download finished open the downloaded package and install it. |
|
230 |
|
231 In order to test, if everything worked ok, open a Python shell and enter these |
|
232 commands |
|
233 |
|
234 >>> import pysvn |
|
235 >>> pysvn.version |
|
236 |
|
237 This should print the pysvn version as a tuple like ``(1, 7, 10, 1584)``. If |
|
238 you get an error please check your installation. |
|
239 |
|
240 Note: Mac OS X Lion provides Subversion 1.6.x. When downloading pysvn make sure |
|
241 to download the variant compiled against that version. This is important |
|
242 because the working copy format of Subversion 1.7.x is incompatible to |
|
243 the old one. |
|
244 |
|
245 |
|
246 14. Install Mercurial |
|
247 --------------------- |
|
248 Get Mercurial from |
|
249 |
|
250 http://mercurial.selenic.com/ |
|
251 |
|
252 Extract the downloaded package and install it. |
|
253 |
|
254 |
|
255 15. Install eric6 |
|
256 ----------------- |
|
257 Get the latest eric6 distribution package from |
|
258 |
|
259 http://eric-ide.python-projects.org/eric-download.html |
|
260 |
|
261 Just follow the link on this page to the latest download. |
|
262 |
|
263 Extract the downloaded package and language packs into a directory and install |
|
264 it with this command |
|
265 |
|
266 :: |
|
267 |
|
268 sudo python3 install.py |
|
269 |
|
270 This step concludes the installation procedure. You are ready for the first |
|
271 start of eric6. |
|
272 |
|
273 The eric6 installer created an application bundle in the location |
|
274 |
|
275 :: |
|
276 |
|
277 /Applications/eric6 |
|
278 |
|
279 You may drag it to the dock to have it ready. |
|
280 |
|
281 |
|
282 16. First start of eric6 |
|
283 ------------------------ |
|
284 When eric6 is started for the first time it will recognize that it hasn't been |
|
285 configured yet. Therefore it will start the configuration dialog with the |
|
286 default configuration. At this point you could simply close the dialog by |
|
287 pressing the OK button. However, it is strongly recommended that you go through |
|
288 the configuration pages to get a feeling for the configuration possibilities. |
|
289 |
|
290 It is recommended to configure at least the path to the Qt tools on the Qt page |
|
291 and the paths to the various help pages on the Help Documentation page. The |
|
292 values to be entered are given above in the Python and Qt installation |
|
293 sections. |
|
294 |
|
295 |
|
296 17. Install optional packages for eric6 (for plug-ins) |
|
297 ------------------------------------------------------ |
|
298 eric6 provides an extension mechanism via plug-ins. Some of them require the |
|
299 installation of additional python packages. The plug-ins themselves are |
|
300 available via the Plugin Repository from within eric6. |
|
301 |
|
302 |
|
303 17.1 Installation of pylint |
|
304 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
305 pylint is a tool to check Python sources for issues. Install ``pylint`` using |
|
306 the ``pip`` utility. To do this just enter this in a console window |
|
307 |
|
308 :: |
|
309 |
|
310 sudo pip3 install pylint |
|
311 |
|
312 |
|
313 17.2 Installation of cx_Freeze |
|
314 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
315 cx_Freeze is a tool that packages a Python application into executables. It is |
|
316 like py2exe and py2app. Install ``cx_Freeze`` using the ``pip`` utility. To do |
|
317 this just enter this in a console window |
|
318 |
|
319 :: |
|
320 |
|
321 sudo pip3 install cx_Freeze |
|
322 |
|
323 This completes this installation instruction. Please enjoy using eric6 and let |
|
324 the world know about it. |
|
325 |
|
326 |
|
327 Appendix A: Update of MacPorts |
|
328 ------------------------------ |
|
329 In order to update MacPorts and the installed packages enter these commands in |
|
330 a terminal window |
|
331 |
|
332 :: |
|
333 |
|
334 sudo port selfupdate (update MacPorts itself) |
|
335 sudo port upgrade outdated (update outdated installed ports) |