SBGit-2019 / Pyside-QCP

Pyside2 bindings for QCustomplot
Other
16 stars 1 forks source link

rpm package #6

Open tieugene opened 2 years ago

tieugene commented 2 years ago

I try to build Fedora rpm package. Without pip, without docker, without manylinux - just fromo scratch. `cmake say this:

...
CMake Error at CMakeLists.txt:175 (message):
  Error: Calling pyside2_config.py --shiboken2-module-path returned no                                                                                       
  output.                                                                                                                                                    
Call Stack (most recent call first):                                                                                                                         
  CMakeLists.txt:182 (pyside2_config)                                                                                                                        

Seems it cannot exec this:

     COMMAND ${python_interpreter} "${CMAKE_SOURCE_DIR}/util/pyside2_config.py"

Everything required is installed - shiboken2-devel, pyside2...-devel, qt5-...-devel etc.

What to do?

SBGit-2019 commented 2 years ago

It is not easy to compile. You should look at the

It is possible to compile this outside the docker then. It works for me on an Ubuntu 20 system.

Note, that the manylinux wheels we provide should work on Fedora too. Not totally sure why you want a rpm package instead of "pip install" it ?

tieugene commented 2 years ago

Note, that the manylinux wheels we provide should work on Fedora too. Not totally sure why you want a rpm package instead of "pip install" it ?

pip install contradicts package subsystem. Right way is:

Pip installs those things that are not controlling by rpm database. Then I have to control rpm database, pip list, python virtualenvs, php compose, perl pears, java something... What for?

PS. BTW rpm must be buildable without networking.

tieugene commented 2 years ago
set(shiboken_path "${shiboken2_generator_path}/shiboken2${CMAKE_EXECUTABLE_SUFFIX}")
if(NOT EXISTS ${shiboken_path})
    message(FATAL_ERROR "Shiboken executable not found at path: ${shiboken_path}")
endif()

Not works for me.

$ which shiboken2
/usr/bin/shiboken2
tieugene commented 2 years ago

As for now I achieved cmake .. ok. But make fails

SBGit-2019 commented 2 years ago

I have to install Fedora to see what the problem is. With the messages posted here it is not possible to say what is wrong. If you dont manage to build it, I will give it a try if a I have a bit of time. However, it seems you are making slow but steady progress. Maybe it works soon :-)

tieugene commented 2 years ago

However, it seems you are making slow but steady progress. Maybe it works soon :-)

An idea is to bump python-qcustomplot-pyside2 package into official Fedora repo (like these). First or last.