qgis / QGIS-Mac-Packager

Scripts for Official QGIS MacOS Packages
https://www.qgis.org
GNU General Public License v2.0
54 stars 21 forks source link

QGIS install step tries to write to PyQt5 widget-plugins #113

Open PeterPetrik opened 3 years ago

PeterPetrik commented 3 years ago
-- Installing: /opt/QGIS/qgis-deps-0.7.0/stage/lib/python3.8/site-packages/PyQt5/uic/widget-plugins/qgis_customwidgets.py
CMake Error at python/cmake_install.cmake:163 (file):
  file INSTALL cannot copy file
  "/Users/admin/qgis/builds/nightly/QGIS/python/custom_widgets/qgis_customwidgets.py"
  to
  "/opt/QGIS/qgis-deps-0.7.0/stage/lib/python3.8/site-packages/PyQt5/uic/widget-plugins/qgis_customwidgets.py":
  Permission denied.
Call Stack (most recent call first):
  cmake_install.cmake:52 (include)

FAILED: CMakeFiles/install.util 
PeterPetrik commented 3 years ago

we should introduce some variable to be able to install custom widgets to some specified folder and then pick them from there with qgis_bundle step

3nids commented 3 years ago

why can't it copy? isn't is how this is supposed to work?

PeterPetrik commented 3 years ago

I think you do not want the qgis installer to copy the files to /qgis-deps-xx/ folder. /qgis-deps-xx/ folder should 1-1 to the one you extracted/installed.

Of course for the developer builds, you may want qgis to install it directly to the deps directory. but for the nightly builds, you would rather see this file in the separate folder (relative to build -dir) and then just bundle it where it need to be. (think of paraller builds of LTR and PR or so, they would overwrite this file?)