Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.3.4] Install fails on python 3.6 #201

Open
tuxmaster5000 opened this issue Jun 26, 2019 · 6 comments
Open

[1.3.4] Install fails on python 3.6 #201

tuxmaster5000 opened this issue Jun 26, 2019 · 6 comments
Labels
cannot-reproduce more-info-needed More information required from issue owner python 2

Comments

@tuxmaster5000
Copy link

It will fails with:
Copying Paver.egg-info to /builddir/build/BUILDROOT/python-paver-1.3.4-1.el7.x86_64/usr/lib/python3.6/site-packages/Paver-1.3.4-py3.6.egg-info
running install_scripts
Installing paver script to /builddir/build/BUILDROOT/python-paver-1.3.4-1.el7.x86_64/usr/bin
File "/usr/lib/python3.6/site-packages/paver/deps/path2.py", line 939
def mkdir(self, mode=0777):

@Almad
Copy link
Member

Almad commented Jun 26, 2019

@tuxmaster5000 could you please post your OS/version and install process?

(package? pip install? system-wide or virtualenv? root or user?)

@Almad Almad added cannot-reproduce more-info-needed More information required from issue owner labels Jun 26, 2019
@tuxmaster5000
Copy link
Author

It will be an system-wide build for rpm. Using CentOS 7.6
I have add the build log here:
build.txt

@Almad
Copy link
Member

Almad commented Jun 28, 2019

I see the problem, for some reason the build is executing all files, attempting to bundle in python2 file with python3 interpreter. Apparently you can't bytecompile without parsing ;)

Can you convince /usr/lib/rpm/brp-python-bytecompile to skip this file, use a different interpreter or just remove that file before building the rpm package for py3?

@Almad Almad added the python 2 label Jun 28, 2019
@tuxmaster5000
Copy link
Author

No, because the build script from CentOS/RedHat will precompile all installed python files.
As an temporary workaround I have remove the file, before I call setup.py. But it will be better, when the setup only install the python2 stuff, when it called by python2.

@Almad
Copy link
Member

Almad commented Jul 1, 2019 via email

@tuxmaster5000
Copy link
Author

I have tried to understood your installer, but it looks for me very strange, because it don't use the default setup.py routines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cannot-reproduce more-info-needed More information required from issue owner python 2
Projects
None yet
Development

No branches or pull requests

2 participants