Skip to content

Conversation

@enrico-lattuada
Copy link
Collaborator

@enrico-lattuada enrico-lattuada commented Jun 2, 2025

Description

  • Add installation script with uv support
  • Document installation script
  • Use uv in GitHub actions

Motivation and context

Astral's uv makes installation and project/dependency management fast, improving development experience and reducing pipeline durations.

Resolves #247

How has this been tested?

  • CI pipelines
  • Locally by running tests after installation with:
    • Arch Linux (Linux 6.14.9), in virtual environment, using gcc 15.1.1, cuda 12.8, with cuda enabled
    • Windows 11, in both global and in virtual environment (conda), using visual studio compiler, cuda 12.9, with cuda enabled

Change log

v0.3.14 (2025-MM-DD)
^^^^^^^^^^^^^^^^^^^^

*Added*

- Installation script with uv support to simplify optional arguments setting.

Checklist:

@enrico-lattuada enrico-lattuada self-assigned this Jun 2, 2025
@enrico-lattuada enrico-lattuada added the priority: high Important improvements or optimizations label Jun 2, 2025
@enrico-lattuada enrico-lattuada added difficulty: medium Standard tasks that need moderate effort type: build Tasks related to packaging, installation scripts, and setup labels Jun 2, 2025
@enrico-lattuada enrico-lattuada moved this to In progress in Modernization Roadmap Jun 2, 2025
@enrico-lattuada enrico-lattuada linked an issue Jun 2, 2025 that may be closed by this pull request
4 tasks
@enrico-lattuada enrico-lattuada marked this pull request as ready for review June 3, 2025 21:21
@enrico-lattuada enrico-lattuada moved this from In progress to In review in Modernization Roadmap Jun 4, 2025
@eXpensia
Copy link
Collaborator

I tried to install it with uv and the install.py file. It runned smoothly up to one detail. using pip as before and setup the path to the compiler I had no issues, here it is by default, using a conda env, uv settings are putting the wrong path for some libraries so I was running into some error :

ImportError: /home/Maxime/miniconda3/envs/fddmtest/bin/../lib/libstdc++.so.6: version GLIBCXX_3.4.32' not found (required by /home/Maxime/miniconda3/envs/fddmtest/lib/python3.12/site-packages/fastddm/libfddm.so)`

The easy work around was to install he libraries through conda : conda install -c conda-forge libstdcxx-ng

Copy link
Collaborator

@krauthex krauthex left a comment

Choose a reason for hiding this comment

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

Looks good to me :-) have not tested it, as fastddm is unfortunately not really installable on the ipad I‘m reviewing this on. :-D

@enrico-lattuada
Copy link
Collaborator Author

I tried to install it with uv and the install.py file. It runned smoothly up to one detail. using pip as before and setup the path to the compiler I had no issues, here it is by default, using a conda env, uv settings are putting the wrong path for some libraries so I was running into some error :

ImportError: /home/Maxime/miniconda3/envs/fddmtest/bin/../lib/libstdc++.so.6: version GLIBCXX_3.4.32' not found (required by /home/Maxime/miniconda3/envs/fddmtest/lib/python3.12/site-packages/fastddm/libfddm.so)`

The easy work around was to install he libraries through conda : conda install -c conda-forge libstdcxx-ng

This could be due to uv being installed from pip and not conda. Try installing uv in the conda environment

@enrico-lattuada enrico-lattuada changed the base branch from 252-devops-finalize-phase-1 to develop November 13, 2025 17:51
@eXpensia
Copy link
Collaborator

Clean! I used the uv installer on some computers and it worked as a charm.

@eXpensia
Copy link
Collaborator

Sorry for the delay, it was quickly done @enrico-lattuada everything should be good to go now!

@enrico-lattuada enrico-lattuada merged commit e062913 into develop Nov 30, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Modernization Roadmap Nov 30, 2025
@enrico-lattuada enrico-lattuada deleted the 247-devops-introduce-uv branch November 30, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

difficulty: medium Standard tasks that need moderate effort priority: high Important improvements or optimizations type: build Tasks related to packaging, installation scripts, and setup

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[DevOps] Introduce uv

4 participants