Skip to content

Conversation

@diegomartinez2
Copy link
Collaborator

Hi Lorenzo, I need somebody to test the meson install in other computers before adding it to master. I only tested in my laptop on a conda env, but it already has SSCHA in the base system so I have doubts. I think it will work on Apple ARM (M1/M2) architecture, but I do not have way to test it.
Meson_compiter_test

@diegomartinez2
Copy link
Collaborator Author

The error comes from "CellConstructor". It's using the old cellconstructor code.

@mesonepigreco mesonepigreco self-requested a review September 30, 2025 06:11
@mesonepigreco mesonepigreco self-assigned this Sep 30, 2025
@mesonepigreco mesonepigreco added the cleaning cleaning of the code label Sep 30, 2025
@mesonepigreco mesonepigreco added this to the 1.5 milestone Sep 30, 2025
Copy link
Collaborator

@mesonepigreco mesonepigreco left a comment

Choose a reason for hiding this comment

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

The test are running on my local machine.
@diegomartinez2 could you try to fix the build workflow (build.yml) and the testsuite workflow to install cellconstructor from the github page, install meson, meson-python and ninja, and then build python-sscha with the pip install --no-build-isolation . command as explained in the comment? This should fix the error that cellconstructor 1.5 is not yet released and allow us to run the complete testsuite on github.

I would like to syncronize the release of the version 1.5 of cellconstructor and python-sscha.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would leave the requirement for python >=3.8 and <=3.12, otherwise it is a breaking change as python 3.12 is a breaking release.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Anyway, we can fix the version control on cellconstructor by forcing a local environment installation of python. We first install cellconstructor from the github repository, which is the 1.5, then we force the python-sscha installation without creating the isolation build (that only looks at pypy for packages):

pip install --no-build-isolation .

For this to work, we must manually install meson before running the installation, otherwise pip will complain.

pip install meson meson-python ninja

Copy link
Collaborator

Choose a reason for hiding this comment

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

The installation of setuptools=64 must be removed, as this was related to the old build that required a very old version of setuptools.
So just ignore it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Note that this occurs multiple times throught this file

@diegomartinez2
Copy link
Collaborator Author

OK it passed all the checks now, but I removed the cellconstructor from requirements.txt so it may need to reintroduce it later.

@diegomartinez2
Copy link
Collaborator Author

Now in github the cellconstructor is taken from the sources and compiled for the tests.

Copy link
Collaborator

@mesonepigreco mesonepigreco left a comment

Choose a reason for hiding this comment

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

It seems everything is fine!

@mesonepigreco mesonepigreco merged commit 23c3797 into SSCHAcode:master Sep 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleaning cleaning of the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants