Skip to content

Fix mamba installation.#180

Merged
fernandohds564 merged 19 commits intomasterfrom
dev/maint/adapt-install
Dec 9, 2025
Merged

Fix mamba installation.#180
fernandohds564 merged 19 commits intomasterfrom
dev/maint/adapt-install

Conversation

@fernandohds564
Copy link
Contributor

@fernandohds564 fernandohds564 commented Jun 5, 2025

since last year, several changes took place with the Mambaforge project. Now the installer is called Miniforge3 and the initialization method of mamba changed.

Besides, I wasn't able to install the build package with mamba anymore, so I changed the script to install it with pip.

This PR will come together with several other PRs in basically all of our repositories, because since the beggining of this year, pip deprecated the explicit use of the setup.py file as a command line tool, as can be seen in this link and on this github issue.

Now it is highly reccomended to have a pyproject.toml file inside the repositories with a [build-system] table, as discussed here.

Actually, now it is possible to completely remove the setup.py file, since all metadata configurations are supported by the pyproject.toml file, as shown here and here. This link also brings a complete specification of the .toml syntax, which can be helpful to understand the definitions on the PRs I'll link with this one.

Additionally, this link helps us defining all specific setuptools metadata configurations within the pyproject.toml file, making the setup.py completely unnecessary. You guys will notice in my PRs, however, that I kept the file setup.py for now, with duplicated informations. This is because we still need to support python3.6, which still has older versions of pip and setuptools, that does not fully support this new installation mechanism. As soon as the PCs from the control room have their OS updated and we abandon python3.6, I'll make PRs removing the setup.py files from all our repositories.

List of PRs linked with this one.
lnls-fac:

lnls-sirius:

lnls-ima:

lnls-ids:

Guys, @anacso17, I finished making all pull requests related to this PR. It would be nice if we could test a deploy on the control room with these branches. Do you think it is possible to do this?

I just tested the mamba installation script using the new branches for all repositories and it worked well.
@afonsoln also tested the micromamba installation file (.yml) for the hla using the new branches and it also worked.

@fernandohds564 fernandohds564 merged commit 710bb61 into master Dec 9, 2025
@fernandohds564 fernandohds564 deleted the dev/maint/adapt-install branch December 9, 2025 12:16
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.

9 participants