bioinformed / glu-genetics

Automatically exported from code.google.com/p/glu-genetics
Other
6 stars 0 forks source link

Building a package from source fails #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python setup.py --command-packages=stdeb.command sdist_dsc
2. cd deb_dist/glu-1.0b2-dev
3. dpkg-buildpackage -rfakeroot -uc -us

What is the expected output? What do you see instead?
A deb package (ubuntu, I get an error), 
by skipping creation of the extension (commenting out in the setup.py),
it works again  

What version of the product are you using? On what operating system?
glu-1.0b2-dev (from Mercurial)
python 2.6.5 
python-pyrex 0.9.8.5
cython 0.11.2-1
Ubuntu 10.04

Please provide any additional information below.
pyrexc:> build/src.linux-x86_64-2.6/glu/lib/seqlib/_cigar.c
creating build/src.linux-x86_64-2.6/glu/lib/seqlib

Error converting Pyrex file to C:
------------------------------------------------------------
...
      while pos<n and q[pos]==r[pos]=='-':
        pos += 1

    # Find runs of matches: count matches (eq)
    elif q[pos]==r[pos]!='N':
      while pos<n and 'N'!=q[pos]==r[pos]!='-':
                                        
^
------------------------------------------------------------

/home/bdekoning/Temporary/Package-build-site/glu-genetics/deb_dist/glu-1.0b2-dev
/glu/lib/seqlib/_cigar.pyx:118:41: Invalid types for '!=' (char, char *)

Error converting Pyrex file to C:
------------------------------------------------------------
...
        nm  += 1
        pos += 1

    # Find runs of mismatches: write match count (eq) for each mismatch base
    else:
      while pos<n and ('-'!=q[pos]!=r[pos]!='-' or 'N'==q[pos]==r[pos]):
                                        
 ^
------------------------------------------------------------

/home/bdekoning/Temporary/Package-build-site/glu-genetics/deb_dist/glu-1.0b2-dev
/glu/lib/seqlib/_cigar.pyx:144:42: Invalid types for '!=' (char, char *)
Traceback (most recent call last):
  File "setup.py", line 126, in <module>

Original issue reported on code.google.com by bratdak...@gmail.com on 23 Sep 2010 at 3:40

GoogleCodeExporter commented 9 years ago
I'm using Cython 0.13 at the moment and not seeing that error.  Can you give it 
another try after upgrading to 0.13?

Original comment by bioinformed@gmail.com on 24 Sep 2010 at 7:25

GoogleCodeExporter commented 9 years ago
As Ubuntu provides a deb for 0.12 in the Maverick repositories I decided to 
give that one a try first. This already solved the issue actually.
Sorry, for filing this bug report while the problem was actually an old cython 
version.

Thank you for your quick response!

Original comment by bratdak...@gmail.com on 28 Sep 2010 at 12:17