-
Notifications
You must be signed in to change notification settings - Fork 36
Adding a Nix build to the CI, reimplementing the python wheels build too #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
0443b97
Created a nix development to try
toastedcrumpets cec7b5a
Enabled VScode build on nix for now
toastedcrumpets e692969
A fix for MSVC
toastedcrumpets 902d325
Another fix for MSVC
toastedcrumpets 2aa1fec
Removed vcpkg as we move to nix
toastedcrumpets 31324ef
Trying to build the derivation
toastedcrumpets 212f40a
Package works but dynavis does not
toastedcrumpets 51d6371
Got a build and install working, not sure about python packaging yet
toastedcrumpets 5e63f1a
Fix python package name
toastedcrumpets 5367ecc
Testing a new CI workflow using nix
toastedcrumpets bb13954
Fixed nix channel
toastedcrumpets aff4c0d
Made CI recursively checkout submodules
toastedcrumpets efd84d8
More fixes for nix CI
toastedcrumpets 887ef67
Another attempt to fix CI for nix
toastedcrumpets 29ba816
Add missing build step to nix CI
toastedcrumpets c0c203d
Added libGL dependency
toastedcrumpets 6cf1144
Removing macos builds for now too.
toastedcrumpets 20151c2
Fix for GL
toastedcrumpets 0098673
Added build dependencies to CIBW
toastedcrumpets 47e697c
Another attempt to build wheels
toastedcrumpets 1b660ef
Bumped cibuildwheel, but no solution for out of date boost yet
toastedcrumpets c4bd263
Trying to use vcpkg on cibuildwheels
toastedcrumpets 353063c
Fixed cibuildwheels to use vcpkg
toastedcrumpets 7aebda4
Typo fix
toastedcrumpets 28168d1
Update pyproject.toml
toastedcrumpets 1fa6cc2
Update pyproject.toml
toastedcrumpets daac80d
Update pyproject.toml
toastedcrumpets 7ae4428
Added make instead of ninja
toastedcrumpets ae196f5
Another patch for musllinux compilation
toastedcrumpets 43c843f
Got x86_64 builds working
toastedcrumpets 5de8872
Moved away from vcpkg in the wheels
toastedcrumpets a95a600
A fix for macos now
toastedcrumpets 7036842
Another patch for macos
toastedcrumpets 83d1cb4
Trying to build boost from source on macos to enable portable wheels
toastedcrumpets d27d1f6
Trying static boost
toastedcrumpets 83c081d
Trying boost static
toastedcrumpets 25f72ae
Setup Prefer boost static, to allow wheel build on all platforms supp…
toastedcrumpets 7738983
Update src/magnet/magnet/GL/context.hpp
toastedcrumpets File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| use flake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,5 @@ __pycache__ | |
|
|
||
| Testing/Temporary/CTestCostData.txt | ||
| .eggs | ||
| wheelhouse | ||
| wheelhouse | ||
| vcpkg_installed | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,3 @@ | ||
| [submodule "extern/stator"] | ||
| path = extern/stator | ||
| url = https://github.com/toastedcrumpets/stator.git | ||
| [submodule "vcpkg"] | ||
| path = extern/vcpkg | ||
| url = https://github.com/microsoft/vcpkg.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| { pkgs ? import <nixpkgs> {} }: | ||
| pkgs.callPackage ./derivation.nix {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # see https://unix.stackexchange.com/questions/717168/how-to-package-my-software-in-nix-or-write-my-own-package-derivation-for-nixpkgs | ||
| # To install `nix-env -u -f default.nix` | ||
| # To develop `nix-shell` (will build the shell with dependencies) | ||
| # To test build `nix-build` | ||
| { pkgs, python3 }: | ||
| python3.pkgs.buildPythonPackage rec { | ||
| name = "pydynamo"; | ||
| src = ./.; | ||
| pyproject = true; | ||
|
|
||
| dontUseCmakeConfigure = true; | ||
|
|
||
| propagatedBuildInputs = with python3.pkgs; [ | ||
| scikit-build-core | ||
| numpy | ||
| alive-progress | ||
| uncertainties | ||
| pandas | ||
| scipy | ||
| freud | ||
| networkx | ||
| pytest | ||
| ]; | ||
|
|
||
| nativeBuildInputs = with pkgs; [ | ||
| cmake | ||
| ninja | ||
| git | ||
| gcc | ||
| pkg-config | ||
| clang-tools | ||
| wrapGAppsHook3 | ||
| ] ++ propagatedBuildInputs; | ||
|
|
||
| buildInputs = with pkgs; [ | ||
| # Basic build dependencies | ||
| bzip2.dev | ||
| boost.dev | ||
| eigen | ||
|
|
||
| # Visualiser | ||
| libGL.dev | ||
| gtkmm3.dev | ||
| ffmpeg.dev | ||
| freeglut | ||
| glew | ||
| cairomm.dev | ||
| libpng | ||
| ]; | ||
| } |
Submodule vcpkg
deleted from
b02e34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The
nix-buildandhand-buildjobs largely duplicate steps. Consider extracting shared steps into YAML anchors or a reusable workflow template to reduce duplication and simplify future updates.