[Bug 1465991] New: Python3 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1465991

            Bug ID: 1465991
           Summary: Python3 support
           Product: Fedora
           Version: rawhide
         Component: perl-Inline-Python
          Keywords: FutureFeature
          Assignee: j.k.nilsen@xxxxxxxxxxx
          Reporter: ppisar@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: j.k.nilsen@xxxxxxxxxxx,
                    perl-devel@xxxxxxxxxxxxxxxxxxxxxxx



perl-Inline-Python-0.54-1.fc27 is built against Python 2. It would be great to
build it for Python3. Upstream supports Python3.

The issue is that Makefile.PL has some checks that does work in Fedora.

First one must to override the python executable with INLINE_PYTHON_EXECUTABLE
environment variable.

Second it fails because it cannot find Python3 library:

$ INLINE_PYTHON_EXECUTABLE=/usr/bin/python3 perl Makefile.PL
Using /usr/bin/python3

This python's configuration files are messed up. You'll have have to
answer the questions yourself. Here is what Python said:

   Extra Libs:  -lpthread -ldl  -lutil
   Python Library: 
/usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a
   Include Path:    /usr/include/python3.6m

        1. LIBS option. I need to know what extra libraries, if any,
           are required by this build of python. I recommend this:
           -lpthread -ldl  -lutil

The /usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a file does
not exist. Fedora has /usr/lib64/libpython3.6m.so. It's possible that the check
is bogus because it should check for a shared library.

Commenting out (-f join '/', $ref->{libpath}, $ref->{libpython}) test in
Makefile.PL allows to build against Python 3 and all tests pass.

In case of Python 2, it checks for /usr/lib64/python2.7/config/libpython2.7.so
which is a symlink to /usr/lib64/libpython2.7.so.
In case of Python 3, there is no such symlink.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
perl-devel mailing list -- perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]

  Powered by Linux