Sean Gillies (Posts about pypi)https://sgillies.net/tags/pypi.atom2023-12-31T01:26:21ZSean GilliesNikolaGood news for PyPIhttps://sgillies.net/2017/11/28/good-news-for-pypi.html2017-11-29T00:24:55-07:002017-11-29T00:24:55-07:00Sean Gillies<p>Mozilla's Open Source Support Program has awarded a $170,000 grant to the
Python Software Foundation to improve the sustainability of the Python Package
Index:
<a class="reference external" href="http://pyfound.blogspot.com/2017/11/the-psf-awarded-moss-grant-pypi.html">http://pyfound.blogspot.com/2017/11/the-psf-awarded-moss-grant-pypi.html</a>.</p>
<p>For-profit users of PyPI, together (including my team), ought to be able to
match this amount, I think.</p>Wobbly Fiona and Shapely Wheelshttps://sgillies.net/2017/10/27/wobbly-fiona-and-shapely-wheels.html2017-10-27T12:54:47-06:002017-10-27T12:54:47-06:00Sean Gillies<p>On 2017-06-05 <a class="reference external" href="https://github.com/sgillies/frs-wheel-builds/blob/master/CHANGES.txt#L18-L28">I began to use GDAL 2.2.0</a>
in the Fiona binary wheels I upload to the Cheeseshop. I also changed the
<code class="docutils literal">MACOSX_DEPLOYMENT_TARGET</code> environment variable from 10.6 to 10.9 in order to
get GDAL 2.2.0 to compile. This seems to be the cause of Shapely and Fiona
wheel compatibility issues. Have I mentioned that I'm not completely competent
at C++ on OS X? I'm not.</p>
<p>My co-worker Matt Perry provided a script that exposed this issue clearly and
I bisected in Fiona and Shapely version space until I found the root of the
problem.</p>
<p>Until I get new wheels on PyPI, here are the three coping strategies.</p>
<ol class="arabic simple">
<li><p>Avoid the wheels entirely:</p></li>
</ol>
<div class="code"><pre class="code console"><a id="rest_code_43f0295f01334b49897e870e65f33141-1" name="rest_code_43f0295f01334b49897e870e65f33141-1" href="https://sgillies.net/2017/10/27/wobbly-fiona-and-shapely-wheels.html#rest_code_43f0295f01334b49897e870e65f33141-1"></a><span class="go">pip install -I --no-binary fiona,shapely fiona==1.7.10 shapely==1.6.2</span>
</pre></div>
<p>This is what I do in my Dockerfiles at work. This strategy requires the GDAL
and GEOS libraries and headers to be pre-installed on your system, and also
Numpy and Cython.</p>
<ol class="arabic simple" start="2">
<li><p>Downgrade Fiona, using wheels:</p></li>
</ol>
<div class="code"><pre class="code console"><a id="rest_code_6d0fcd4d3d67456992033ae8555d01d7-1" name="rest_code_6d0fcd4d3d67456992033ae8555d01d7-1" href="https://sgillies.net/2017/10/27/wobbly-fiona-and-shapely-wheels.html#rest_code_6d0fcd4d3d67456992033ae8555d01d7-1"></a><span class="go">pip install -I fiona==1.7.6</span>
</pre></div>
<ol class="arabic simple" start="3">
<li><p>Downgrade Shapely, using wheels:</p></li>
</ol>
<div class="code"><pre class="code console"><a id="rest_code_48f9e3f165744eee91a1feebc927ea41-1" name="rest_code_48f9e3f165744eee91a1feebc927ea41-1" href="https://sgillies.net/2017/10/27/wobbly-fiona-and-shapely-wheels.html#rest_code_48f9e3f165744eee91a1feebc927ea41-1"></a><span class="go">pip install -I shapely==1.6b4</span>
</pre></div>
<p>The issue affects Rasterio, too. Rasterio version 1.0a9 wheels should be safe
with any version of Shapely.</p>
<p>I'll have an announcement about new wheels soon.</p>
<p><strong>Update</strong> (2017-10-31): the nightmare is <a class="reference external" href="https://sgillies.net/2017/10/31/trued-macosx-wheels.html">over</a>.</p>