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

Test: add check for mechanical-env #703

Closed
wants to merge 3 commits into from
Closed

Conversation

dipinknair
Copy link
Collaborator

@dipinknair dipinknair commented Apr 12, 2024

When not using mechanical-env for embedding in Linux , you should see this exception

For embedding tets:
image

For Docs build
image

@github-actions github-actions bot added the dependencies Related with project dependencies label Apr 12, 2024
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Apr 12, 2024
@dipinknair dipinknair closed this Apr 12, 2024
@dipinknair dipinknair reopened this Apr 15, 2024
@github-actions github-actions bot added maintenance Package and maintenance related CI/CD labels Apr 15, 2024
if platform.architecture()[0] != "64bit":
raise Exception("Mechanical Embedding requires a 64-bit Python environment.")


def __check_for_mechanical_env():
"""Embedding in linux platform must use mechanical-env."""
if platform.system() == "Linux" and os.environ.get("PYMECHANICAL_EMBEDDING") != "TRUE":
Copy link
Collaborator

Choose a reason for hiding this comment

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

looks good

@dipinknair dipinknair closed this Apr 16, 2024
@dipinknair dipinknair deleted the test/embedding-env branch April 16, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Related with project dependencies documentation Improvements or additions to documentation maintenance Package and maintenance related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants