Skip to content

Commit

Permalink
feat: Add conda environment yaml config file (#2)
Browse files Browse the repository at this point in the history
* Add environment.yml as URSSI summer school encourages conda use.
* Add use instructions to README.
  • Loading branch information
matthewfeickert authored Jul 29, 2024
1 parent 66d7173 commit 5005072
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ Viewable online [here](https://matthewfeickert-talks.github.io/talk-urssi-summer

A version of this talk was originally given as part of the [ORIGINS Data Science Lab Forum's 2023 seminar series](https://github.com/matthewfeickert-talks/talk-odsl-forum-seminar-2023).

## Setup

To ensure an environment that is able to build all the examples you can use the provided `environment.yml` file

```console
conda env create --yes --file environment.yml
```

## Acknowledgments

* [Matthew Feickert](http://www.matthewfeickert.com/) is supported by the US National Science Foundation under Cooperative Agreements [OAC-1836650](https://nsf.gov/awardsearch/showAward?AWD_ID=1836650) and [PHY-2323298](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2323298) ([IRIS-HEP](https://iris-hep.org/)).
10 changes: 10 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: urssi-summer-school-2024-packaging
channels:
- conda-forge
dependencies:
- python=3.12
- cmake >=3.15
- pytest >=7.0.0
- pip
- pip:
- build >=1.1.0
2 changes: 1 addition & 1 deletion examples/compiled_packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Specify CMake version and project language
cmake_minimum_required(VERSION 3.15...3.26)
cmake_minimum_required(VERSION 3.15...3.30)
project(${SKBUILD_PROJECT_NAME} LANGUAGES CXX)

# Setup pybind11
Expand Down
2 changes: 1 addition & 1 deletion talk.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ build-backend = "scikit_build_core.build"
.large[
```cmake
# Specify CMake version and project language
cmake_minimum_required(VERSION 3.15...3.26)
cmake_minimum_required(VERSION 3.15...3.30)
project(${SKBUILD_PROJECT_NAME} LANGUAGES CXX)
# Setup pybind11
Expand Down

0 comments on commit 5005072

Please sign in to comment.