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

Fixes #593, others - issues with pyilmbase install #609

Merged
merged 9 commits into from
Nov 7, 2019

Conversation

kdt3rd
Copy link
Contributor

@kdt3rd kdt3rd commented Nov 5, 2019

The PyIlmBase install logic was incomplete in cmake. This fixes this:

  • computes a relative path from the python paths that can then be used
    with CMAKE_INSTALL_PREFIX to install python modules to an appropriate
    location (can be manually configured as well, install docs updated)
  • Fixes PyIlmBaseConfig not in export set? #604, pyilmbaseconfig was also not being installed properly

Signed-off-by: Kimball Thurston kdt3rd@gmail.com

…nstall

The PyIlmBase install logic was incomplete in cmake. This fixes this:
- computes a relative path from the python paths that can then be used
with CMAKE_INSTALL_PREFIX to install python modules to an appropriate
location (can be manually configured as well, install docs updated)
- Fixes AcademySoftwareFoundation#604, pyilmbaseconfig was also not being installed properly

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Copy link
Contributor

@meshula meshula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Seems like under windows, the introduced relative path search can cause
an infinite loop if it doesn't match. Test for that, may need
adjustment.

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
The get_filename_component gets stuck under windows when finding the
parent directory for a drive letter. This basically reverts to using the
full path, which is more likely to be ok under windows

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
…paring

This fixes an issue under windows where the root is not properly
strequal

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
@@ -55,48 +55,47 @@ endif()
# for our other dependency - boost.
# Boost Python has some .. annoyances in that the python module
# has version names attached to it
function(PYILMBASE_EXTRACT_REL_SITEARCH varname pyver pyexe pysitearch)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bet it's going to be far less work to port Imath to pybind11, than to deal with endless boost::python/cmake curveballs!

PyIlmBase/CMakeLists.txt Show resolved Hide resolved
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
…messages

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
we always build shared libraries now, so even if the default is to build
static, the python bindings are forced to build shared, which means they
need to set the defines to export the symbols appropriately, add extra
variable set

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
…in32

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
@kdt3rd kdt3rd merged commit cf8b35c into AcademySoftwareFoundation:master Nov 7, 2019
@cary-ilm cary-ilm added this to the v2.4.1 milestone Feb 7, 2020
@kdt3rd kdt3rd deleted the fix_593 branch February 12, 2022 21:11
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.

PyIlmBaseConfig not in export set?
3 participants