Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at

Bug 1361799

Summary: python-numexpr: has wrong shebang in the Python 3 subpackage
Product: [Fedora] Fedora Reporter: Petr Viktorin (pviktori) <pviktori>
Component: python-numexprAssignee: Thibault North <thibault.north>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: thibault.north, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: python-numexpr-2.6.1-3.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-08 20:23:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1285816, 1312032    
Description Flags
Patch to fix shebangs none

Description Petr Viktorin (pviktori) 2016-07-30 16:47:16 UTC
Created attachment 1185824 [details]
Patch to fix shebangs

Thank you for your effort of porting numexpr to Python 3 in Fedora! It's much appreciated.

However, there's one more issue: the script/module always has a '/usr/bin/python' shebang, even in the Python 3 subpackage. This causes an unfortunate dependency on Python 2.

Here's a patch to solve the issue.

Alternatively, since the module is not on $PATH, it might be easier to drop the shebang and not make it executable – users can still run it with:
    python3 -m numexpr.cpuinfo
which is easier than:
The shebang and executable bit are not needed for the first case.

It's OK to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 25 as well.

There is a section on shebangs in the Python RPM Porting Guide [0]
which covers this issue.

If anything is unclear, or if you need any kind of assistance, you can
ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy
to help investigating or fixing this issue!


Comment 1 Fedora Update System 2016-08-01 01:54:10 UTC
python-numexpr-2.6.1-3.fc24 has been submitted as an update to Fedora 24.

Comment 2 Fedora Update System 2016-08-01 20:57:06 UTC
python-numexpr-2.6.1-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See for
instructions on how to install test updates.
You can provide feedback for this update here:

Comment 3 Fedora Update System 2016-08-08 20:23:23 UTC
python-numexpr-2.6.1-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.