/usr/share/doc/python-pyfai-doc/html/operations/macosx.html is in python-pyfai-doc 0.11.0+dfsg-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Installation procedure on MacOSX — pyFAI 0.11.0 documentation</title>
<link rel="stylesheet" href="../_static/classic.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '0.11.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="top" title="pyFAI 0.11.0 documentation" href="../index.html" />
<link rel="up" title="Installation of Python Fast Azimuthal Integration library" href="index.html" />
<link rel="next" title="Installation procedure on Windows" href="windows.html" />
<link rel="prev" title="Installation procedure on Linux" href="linux.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="windows.html" title="Installation procedure on Windows"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="linux.html" title="Installation procedure on Linux"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">pyFAI 0.11.0 documentation</a> »</li>
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Installation of Python Fast Azimuthal Integration library</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<p>Author: Jérôme Kieffer</p>
<p>Date: 29/01/2015</p>
<p>Keywords: Installation procedure on MacOSX</p>
<p>Target: System administrators</p>
<div class="section" id="installation-procedure-on-macosx">
<h1>Installation procedure on MacOSX<a class="headerlink" href="#installation-procedure-on-macosx" title="Permalink to this headline">¶</a></h1>
<div class="section" id="using-pip">
<h2>Using PIP<a class="headerlink" href="#using-pip" title="Permalink to this headline">¶</a></h2>
<p>To install pyFAI on an Apple computer you will need a scientific Python stack.
MacOSX provides by default Python2.7 with Numpy which is a good basis.</p>
<dl class="docutils">
<dt>::</dt>
<dd>sudo pip install matplotlib –upgrade
sudo pip install scipy –upgrade
sudo pip install fabio –upgrade
sudo pip install pyFAI –upgrade</dd>
</dl>
<p>If you get an error about the local “UTF-8”, try to:</p>
<dl class="docutils">
<dt>::</dt>
<dd>export LC_ALL=C</dd>
</dl>
<p>Before the installation</p>
</div>
<div class="section" id="installation-from-sources">
<h2>Installation from sources<a class="headerlink" href="#installation-from-sources" title="Permalink to this headline">¶</a></h2>
<p>Get the sources from Github:</p>
<dl class="docutils">
<dt>::</dt>
<dd>git clone <a class="reference external" href="https://github.com/pyFAI/pyFAI.git">https://github.com/pyFAI/pyFAI.git</a>
cd pyFAI</dd>
</dl>
<p>To build pyFAI from sources, a compiler is needed. Apple provides Xcode for free:
<a class="reference external" href="https://developer.apple.com/xcode/">https://developer.apple.com/xcode/</a></p>
<p>Another option is to use GCC which provides supports for multiprocessing via OpenMP (see below)</p>
<p>Optional build dependencies: Cython (>v0.17) is needed to translate the source files into C code.
If Cython is present on your system, the source code will be re-generated and compiled.</p>
<dl class="docutils">
<dt>::</dt>
<dd>sudo pip install cython –upgrade</dd>
</dl>
</div>
<div class="section" id="about-openmp">
<h2>About OpenMP<a class="headerlink" href="#about-openmp" title="Permalink to this headline">¶</a></h2>
<p>There is an issue with MacOSX (v10.8 onwards) where the default compiler (Xcode 5 or 6) switched from gcc 4.2 to clang and
dropped the support for OpenMP.
This is why OpenMP is by default deactivated under MacOSX. If you have installed an OpenMP-able compiler like GCC, you can re-activate it using the flag –openmp for setup.py</p>
<dl class="docutils">
<dt>::</dt>
<dd>LC_ALL=C python setup.py build –openmp
sudo LC_ALL=C python setup.py install</dd>
</dl>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h3><a href="../index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Installation procedure on MacOSX</a><ul>
<li><a class="reference internal" href="#using-pip">Using PIP</a></li>
<li><a class="reference internal" href="#installation-from-sources">Installation from sources</a></li>
<li><a class="reference internal" href="#about-openmp">About OpenMP</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="linux.html"
title="previous chapter">Installation procedure on Linux</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="windows.html"
title="next chapter">Installation procedure on Windows</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/operations/macosx.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="windows.html" title="Installation procedure on Windows"
>next</a> |</li>
<li class="right" >
<a href="linux.html" title="Installation procedure on Linux"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">pyFAI 0.11.0 documentation</a> »</li>
<li class="nav-item nav-item-1"><a href="index.html" >Installation of Python Fast Azimuthal Integration library</a> »</li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2012-2015, Jerome Kieffer.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.4.
</div>
</body>
</html>
|