The C files are generated by Cython from .pyx files and aren't
themselves committed to the repo.

  
https://github.com/Toblerity/Fiona/blob/master/README.rst#development-and-testing

On Fri, Aug 24, 2012 at 12:23 AM, Christian Ledermann
<[email protected]> wrote:
> Hi sean,
>
> On Thu, Aug 23, 2012 at 8:37 PM, Sean Gillies <[email protected]> wrote:
>> On Thu, Aug 23, 2012 at 10:59 AM, Christian Ledermann
>> <[email protected]> wrote:
>>> Hello,
>>> I have some problems installing Fiona with buildout in a virtualenvironment
>>>
>>> a) from Pypi:
>>>
>>> buildout fails with:
>>>
>>> ------------------
>>> Installing pyramid.
>>> Getting distribution for 'Fiona'.
>>> error: README.rst: No such file or directory
>>> An error occurred when trying to install Fiona 0.8. Look above this
>>> message for any errors that were output by easy_install.
>>> While:
>>>   Installing pyramid.
>>>   Getting distribution for 'Fiona'.
>>> Error: Couldn't install: Fiona 0.8
>>> ------------------------------
>>>
>>>
>>> This is puzzling because when i look into the tarball README.rst is
>>> there it's 0 bytes but i guess
>>> that should not matter
>
> That it is 0 bytes when looking into the tar.gz file is because it is a 
> symlink,
> sorry I did not catch this before
>
>> Hi Christian,
>>
>> I just downloaded the sdist on PyPI,
>> http://pypi.python.org/packages/source/F/Fiona/Fiona-0.8.tar.gz#md5=532df1beedee8c7e5f5ae1e05483f93b,
>> and confirmed that README.rst is there
>>
>> krusty-2:Fiona-0.8 seang$ ls -l
>> total 88
>> -rw-r--r--   1 seang  wheel  1503 Feb 21  2012 CHANGES.txt
>> -rw-r--r--   1 seang  wheel    13 Sep 15  2011 CREDITS.txt
>> -rw-r--r--   1 seang  wheel  1519 Sep 15  2011 LICENSE.txt
>> -rw-r--r--   1 seang  wheel  6071 Feb 21  2012 PKG-INFO
>> -rw-r--r--   2 seang  wheel  4462 Feb 21  2012 README.rst
>> -rw-r--r--   1 seang  wheel     4 Dec 20  2011 VERSION.txt
>> -rw-r--r--   1 seang  wheel  1113 Dec 20  2011 benchmark.py
>> drwxr-xr-x  10 seang  wheel   340 Feb 21  2012 docs
>> -rw-r--r--   1 seang  wheel   114 Feb 21  2012 setup.cfg
>> -rw-r--r--   1 seang  wheel  2596 Feb 21  2012 setup.py
>> drwxr-xr-x   4 seang  wheel   136 Feb 21  2012 src
>> drwxr-xr-x   7 seang  wheel   238 Feb 21  2012 tests
>
> yes I get the same versions:
>
> -rw-r--r-- 1 ledermac ledermac 1113 2011-12-21 06:39 benchmark.py
> -rw-r--r-- 1 ledermac ledermac 1503 2012-02-21 20:44 CHANGES.txt
> -rw-r--r-- 1 ledermac ledermac   13 2011-09-16 07:35 CREDITS.txt
> -rw-r--r-- 1 ledermac ledermac 1519 2011-09-16 07:35 LICENSE.txt
> -rw-r--r-- 1 ledermac ledermac 6071 2012-02-21 20:53 PKG-INFO
> -rw-r--r-- 2 ledermac ledermac 4462 2012-02-21 20:50 README.rst
> -rw-r--r-- 1 ledermac ledermac  114 2012-02-21 20:53 setup.cfg
> -rw-r--r-- 1 ledermac ledermac 2596 2012-02-21 20:42 setup.py
> -rw-r--r-- 1 ledermac ledermac    4 2011-12-20 19:58 VERSION.txt
>
> docs:
> total 64
> drwxr-xr-x 4 ledermac ledermac  4096 2012-02-21 20:53 _build
> -rw-r--r-- 1 ledermac ledermac  8987 2012-02-21 08:28 conf.py
> drwxr-xr-x 2 ledermac ledermac  4096 2012-02-21 20:53 data
> -rw-r--r-- 1 ledermac ledermac   448 2011-12-26 22:27 index.rst
> -rw-r--r-- 1 ledermac ledermac  5560 2011-12-26 22:16 Makefile
> -rw-r--r-- 1 ledermac ledermac 20130 2012-02-21 20:42 manual.rst
> -rw-r--r-- 1 ledermac ledermac  1672 2012-02-07 22:07 pip-log.txt
> -rw-r--r-- 2 ledermac ledermac  4462 2012-02-21 20:50 README.rst
>
> src:
> total 8
> drwxr-xr-x 2 ledermac ledermac 4096 2012-02-21 20:53 fiona
> drwxr-xr-x 2 ledermac ledermac 4096 2012-02-21 20:53 Fiona.egg-info
>
> tests:
> total 32
> -rw-r--r-- 1 ledermac ledermac    2 2011-09-18 22:48 __init__.py
> -rw-r--r-- 1 ledermac ledermac 8453 2012-02-21 20:27 test_collection.py
> -rw-r--r-- 1 ledermac ledermac 2061 2011-12-20 00:09 test_feature.py
> -rw-r--r-- 1 ledermac ledermac 6327 2012-01-04 20:33 test_geometry.py
> -rw-r--r-- 1 ledermac ledermac 2333 2012-01-30 07:54 test_rfc3339.py
>
>
> the problem seems to be with zc.buildout-1.6.3-py2.7 (not tested
> with other buildout versions) which gives the above error.
>
> If I delete the symbolic link to README.rst and replace it with the 'real' 
> file
> buildout works fine
>
>>>
>>> and if i try working with a github clone:
>>>
>>> -------------------------------------
>>> Develop: '/home/ledermac/devel/kotti/src/Fiona'
>>> warning: no previously-included files found matching '*.txt'
>>> warning: no files found matching '*.txt' under directory 'tests'
>>> gcc: src/fiona/ogrinit.c: No such file or directory
>>> gcc: no input files
>>> error: command 'gcc' failed with exit status 1
>>> While:
>>>   Installing.
>>>   Processing develop directory '/home/ledermac/devel/kotti/src/Fiona'.
>>>
>>> An internal error occurred due to a bug in either zc.buildout or in a
>>> recipe being used:
>>> Traceback (most recent call last):
>>>   File 
>>> "/home/ledermac/devel/kotti/buildout-cache/eggs/zc.buildout-1.6.3-py2.7.egg/zc/buildout/buildout.py",
>>> line 1852, in main
>>>     getattr(buildout, command)(args)
>>>   File 
>>> "/home/ledermac/devel/kotti/buildout-cache/eggs/zc.buildout-1.6.3-py2.7.egg/zc/buildout/buildout.py",
>>> line 480, in install
>>>     installed_develop_eggs = self._develop()
>>>   File 
>>> "/home/ledermac/devel/kotti/buildout-cache/eggs/zc.buildout-1.6.3-py2.7.egg/zc/buildout/buildout.py",
>>> line 720, in _develop
>>>     zc.buildout.easy_install.develop(setup, dest)
>>>   File 
>>> "/home/ledermac/devel/kotti/buildout-cache/eggs/zc.buildout-1.6.3-py2.7.egg/zc/buildout/easy_install.py",
>>> line 1195, in develop
>>>     *args) == 0
>>> AssertionError
>>> ------------------------------------------
>>>
>>> which at least makes some sense as there is no src/fiona/ogrinit.c
>>>
>>
>> and the C source files are there
>>
>> krusty-2:Fiona-0.8 seang$ ls -l src/fiona/
>> total 1544
>> -rw-r--r--  1 seang  wheel    4043 Feb 21  2012 __init__.py
>> -rw-r--r--  1 seang  wheel    5033 Feb 21  2012 collection.py
>> -rw-r--r--  1 seang  wheel  710121 Feb 21  2012 ogrext.c
>> -rw-r--r--  1 seang  wheel   59418 Feb 21  2012 ogrinit.c
>> -rw-r--r--  1 seang  wheel    2196 Jan 29  2012 rfc3339.py
>>
>
> I had the problem of the missing C sources in the github master clone ->
> https://github.com/Toblerity/Fiona/tree/master/src/fiona
>
>
>
> --
> Best Regards,
>
> Christian Ledermann
>
> Nairobi - Kenya
> Mobile : +254 702978914
>
> <*)))>{
>
> If you save the living environment, the biodiversity that we have left,
> you will also automatically save the physical environment, too. But If
> you only save the physical environment, you will ultimately lose both.
>
> 1) Don’t drive species to extinction
>
> 2) Don’t destroy a habitat that species rely on.
>
> 3) Don’t change the climate in ways that will result in the above.
>
> }<(((*>
> _______________________________________________
> Community mailing list
> [email protected]
> http://lists.gispython.org/mailman/listinfo/community



-- 
Sean Gillies
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to