Skip to content

Fix installation and import issues (conda env) - #13

Open
sjoudaki wants to merge 2 commits into
tilmantroester:masterfrom
sjoudaki:pyhmcode_fix
Open

Fix installation and import issues (conda env)#13
sjoudaki wants to merge 2 commits into
tilmantroester:masterfrom
sjoudaki:pyhmcode_fix

Conversation

@sjoudaki

@sjoudakisjoudaki commented Mar 24, 2026

Copy link
Copy Markdown

This PR fixes several packaging/runtime issues that prevented pyhmcode from installing and importing correctly in a conda environment on macOS/arm64.

@sjoudakisjoudaki changed the title Fix pyproject.tomlFix pyhmcode packaging and mac os import in conda envsMar 25, 2026
@sjoudakisjoudaki changed the title Fix pyhmcode packaging and mac os import in conda envsFix pyhmcode packaging and macOS import in conda envsMar 25, 2026
@sjoudakisjoudaki changed the title Fix pyhmcode packaging and macOS import in conda envsFix installation and import issues on macOS (conda env)Mar 25, 2026
@sjoudakisjoudaki changed the title Fix installation and import issues on macOS (conda env)Fix installation and import issues (conda env)Mar 25, 2026
Comment threadpyproject.toml
"setuptools>=42,<65",
"wheel",
"f90wrap>=0.2.6",
"numpy<1.26",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Does this happen to also work with numpy 2? Or does that break?

Comment threadsetup.py

lib = glob.glob(os.path.join(HERE, "f90wrap_pyhmcode", "_pyhmcode*.so"))[0]

if sys.platform == "darwin":

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

What does this code do?

Sign up for freeto 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

@sjoudaki@tilmantroester