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

Fix python module installation with alternative root/prefix #6370

Merged
merged 1 commit into from Jul 11, 2021

Conversation

landryb
Copy link
Contributor

@landryb landryb commented Jul 10, 2021

Trying to package/build mapserver head before 8.0, it failed for me during install/fake, as it tried writing to the system dirs in usr/local while CMAKE_INSTALL_PREFIX and DESTDIR were properly defined - and ignored.

i think this was an oversight in the large commit done in dd310d2. Not 100% confident about all cases, but this fixes the 'install to alternate dir' problem for me. Cmake expert feedback welcome :)

@landryb
Copy link
Contributor Author

landryb commented Jul 10, 2021

the other fix would be to set Python_ROOT and Python_PREFIX in the lines above instead of setting their uppercase variants.

@geographika
Copy link
Member

Looks good to me. The CMake Python variables are all named similar to Python_ROOT_DIR, whereas PYTHON_ROOT and PYTHON_PREFIX are custom variables that are set in the script and are case-sensitive.

@geographika geographika merged commit cb29808 into MapServer:main Jul 11, 2021
@jmckenna jmckenna added this to the 8.0 Release milestone Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants