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

Omit Python data installation in non-Python builds #1437

Conversation

pmolodo
Copy link
Contributor

@pmolodo pmolodo commented Aug 3, 2023

Since the addition of Include standard data libraries in Python package #1237, we now create a python folder, with a copy of the stdlibs, even if we're not building python.

This is at best redundant, and in my particular case, caused a problem in a downstream build script.

Also - I noticed that the contents of <INSTALL>/python/MaterialX/libraries mirrors the contents of <INSTALL>/libraries, EXCEPT that <INSTALL>/python/MaterialX/libraries/mdl is missing. Is this intentional? Should we be copying the mdl folder as well?

@jstone-lucasfilm
Copy link
Member

@pmolodo This looks like a good improvement to me, though I should note that there's a larger refactoring of Python builds that has been proposed in #1317, with the goal of supporting automated generation of Python packages for PyPI distribution.

We should make sure that these two changes are compatible, but I'd support the idea of merging them both if there are no conflicts.

@jstone-lucasfilm jstone-lucasfilm changed the title only install the stdlib into the python dir if building python Omit Python data installation in non-Python builds Aug 22, 2023
Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks @pmolodo!

@jstone-lucasfilm jstone-lucasfilm merged commit bc6a97c into AcademySoftwareFoundation:main Aug 25, 2023
Michaelredaa pushed a commit to Michaelredaa/MaterialX that referenced this pull request Oct 21, 2023
…undation#1437)

Since the addition of AcademySoftwareFoundation#1237, we now create a python folder, with a copy of the stdlibs, even if we're not building python.

This is at best redundant, and in my particular case, caused a problem in a downstream build script.
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.

2 participants