python2 in epel8-next

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

 



I'm building python3.11-setuptools_scm-epel in epel8-next. It requires mercurial for the tests which requires:

/usr/bin/python2
libpython2.7.so.1.0()(64bit)
python(abi) = 2.7
python2


On my CS8 system this is satisfied by python2-2.7.18-12.module_el8+299+aa6e9afa.x86_64 from the python27 module.

In the epel8-next build I end up with:

 python2                       x86_64  2.7.17-1.el8
 python2-for-tests             x86_64  2.7.17-1.el8
 python2-libs                  x86_64  2.7.17-1.el8

despite this message:

DEBUG util.py:445:  Enabling module streams:
DEBUG util.py:445: mercurial 4.8 DEBUG util.py:445: python27 2.7


Which then emits a complaint when run:

    ERROR: Python 2 is disabled in RHEL8.
    - For guidance on porting to Python 3, see the
        Conservative Python3 Porting Guide:
        http://portingguide.readthedocs.io/
    - If you need Python 2 at runtime:
       - Use the python27 module
    - If you do not have access to BZ#1533919:
       - Use the python27 module
    - If you need to use Python 2 only at RPM build time:
       - File a bug blocking BZ#1533919:
           https://bugzilla.redhat.com/show_bug.cgi?id=1533919
       - Set the environment variable RHEL_ALLOW_PYTHON2_FOR_BUILD=1
           (Note that if you do not file the bug as above,
           this workaround will break without warning in the future.)
    - If you need to use Python 2 only for tests:
       - File a bug blocking BZ#1533919:
           https://bugzilla.redhat.com/show_bug.cgi?id=1533919
         (If your test tool does not have a Bugzilla component,
            feel free to use `python2`.)
       - Use /usr/bin/python2-for-tests instead of python2 to run
           your tests.
           (Note that if you do not file the bug as above,
           this workaround will break without warning in the future.)
    For details, see https://hurl.corp.redhat.com/rhel8-py2
    Fatal Python error: Python 2 is disabled

I can work around it by defining RHEL_ALLOW_PYTHON2_FOR_BUILD=1, but it seems like we really should be pulling in python2 from the module?


--
Orion Poplawski
he/him/his  - surely the least important thing about me
IT Systems Manager                         720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion@xxxxxxxx
Boulder, CO 80301                 https://www.nwra.com/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
epel-devel mailing list -- epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to epel-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Index of Archives]     [Fedora Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Announce]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux