-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Experimental python bindings #7735
base: master
Are you sure you want to change the base?
Commits on Apr 19, 2023
-
python: Initialise bindings from Pythonix
Copies part of the tree from Pythonix at Mic92/pythonix@fbc8490 into the ./python subdirectory. These Python bindings don't build yet with the current Nix version, which is why they're not built yet in this commit. Mic92 confirmed that he's okay with the license being changed to the Nix one: NixOS#7735 (comment) Co-Authored-By: Jörg Thalheim <joerg@thalheim.io>
Configuration menu - View commit details
-
Copy full SHA for 2e37594 - Browse repository at this point
Copy the full SHA 2e37594View commit details -
The python bindings initialised from Pythonix haven't been updated in some Nix versions and would not compile anymore. This commit still doesn't include a working python bindings build, but these are the Nix-update-caused changes that will be necessary for that
Configuration menu - View commit details
-
Copy full SHA for ed8c80b - Browse repository at this point
Copy the full SHA ed8c80bView commit details -
python: Integrate incremental and CI build
Makes the python bindings build, both incrementally and for CI. Documentation is not yet included
Configuration menu - View commit details
-
Copy full SHA for 5dc8bcb - Browse repository at this point
Copy the full SHA 5dc8bcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for de148e4 - Browse repository at this point
Copy the full SHA de148e4View commit details -
python: Format using clang-format
Using the configuration file from NixOS#6721 for less conflicts
Configuration menu - View commit details
-
Copy full SHA for 827f634 - Browse repository at this point
Copy the full SHA 827f634View commit details -
Configuration menu - View commit details
-
Copy full SHA for 410393f - Browse repository at this point
Copy the full SHA 410393fView commit details -
python: Add exampleEnv to try out the bindings
Will be useful for documentation
Configuration menu - View commit details
-
Copy full SHA for 8837e42 - Browse repository at this point
Copy the full SHA 8837e42View commit details -
python: Install the bindings in hopefully the correct location
And don't use the deprecated python3 meson module
Configuration menu - View commit details
-
Copy full SHA for 4599be3 - Browse repository at this point
Copy the full SHA 4599be3View commit details -
Configuration menu - View commit details
-
Copy full SHA for be36946 - Browse repository at this point
Copy the full SHA be36946View commit details -
Not sure why I added it originally
Configuration menu - View commit details
-
Copy full SHA for e3f56e9 - Browse repository at this point
Copy the full SHA e3f56e9View commit details -
Mirroring what the main Nix build does
Configuration menu - View commit details
-
Copy full SHA for 2c3e1c8 - Browse repository at this point
Copy the full SHA 2c3e1c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b27833 - Browse repository at this point
Copy the full SHA 9b27833View commit details -
Configuration menu - View commit details
-
Copy full SHA for d272171 - Browse repository at this point
Copy the full SHA d272171View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8003d6 - Browse repository at this point
Copy the full SHA b8003d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1669ed - Browse repository at this point
Copy the full SHA a1669edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33ca7e3 - Browse repository at this point
Copy the full SHA 33ca7e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dee1c5 - Browse repository at this point
Copy the full SHA 7dee1c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bc4948 - Browse repository at this point
Copy the full SHA 5bc4948View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f8108c - Browse repository at this point
Copy the full SHA 6f8108cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 446db64 - Browse repository at this point
Copy the full SHA 446db64View commit details -
python: Handle null's in expressions correctly
And test that null bytes currently end strings
Configuration menu - View commit details
-
Copy full SHA for 481f28c - Browse repository at this point
Copy the full SHA 481f28cView commit details -
python: Fix boolean to nix conversion
It didn't cause a problem because it converted True to 1, which still allowed 1 == True to succeed in Python (using assertEqual)
Configuration menu - View commit details
-
Copy full SHA for 668313f - Browse repository at this point
Copy the full SHA 668313fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96621a0 - Browse repository at this point
Copy the full SHA 96621a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0503a73 - Browse repository at this point
Copy the full SHA 0503a73View commit details -
python: We don't need to install the bindings into a subdirectly
That in fact doesn't work for importing
Configuration menu - View commit details
-
Copy full SHA for 1b0960f - Browse repository at this point
Copy the full SHA 1b0960fView commit details -
Remove python from manual build again
Using a symlink hacky and breaks in some ways
Configuration menu - View commit details
-
Copy full SHA for d8ce01b - Browse repository at this point
Copy the full SHA d8ce01bView commit details -
Very simple Nix source filtering
So that we don't have to rebuild Nix every time the python bindings change
Configuration menu - View commit details
-
Copy full SHA for 9627862 - Browse repository at this point
Copy the full SHA 9627862View commit details -
Configuration menu - View commit details
-
Copy full SHA for a91f312 - Browse repository at this point
Copy the full SHA a91f312View commit details -
Fix some unset variable problems with vars-and-functions.sh
- BASH_SOURCE[0] doesn't exist for evaluations under `eval` - NIX_STORE may not be set
Configuration menu - View commit details
-
Copy full SHA for 06d7135 - Browse repository at this point
Copy the full SHA 06d7135View commit details -
The former is deprecated
Configuration menu - View commit details
-
Copy full SHA for 34c8519 - Browse repository at this point
Copy the full SHA 34c8519View commit details -
Alternate approach to calling init.sh
Previously the python bindings derivation would use Nix as its source, call configure on that, just to extract the two files tests/init.sh and (the generated one) tests/common/vars-and-functions.sh The new approach is to instead have a separate derivation extracting these two files and having a small wrapper around them
Configuration menu - View commit details
-
Copy full SHA for 91b0740 - Browse repository at this point
Copy the full SHA 91b0740View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56ef3e3 - Browse repository at this point
Copy the full SHA 56ef3e3View commit details -
Make buildPythonApplication test work
Tests that the Nix bindings can be used as a Python dependency in Nix builds
Configuration menu - View commit details
-
Copy full SHA for 8d734cd - Browse repository at this point
Copy the full SHA 8d734cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5fd435 - Browse repository at this point
Copy the full SHA f5fd435View commit details -
Add debugging capability to dev shell
Docs still needed
Configuration menu - View commit details
-
Copy full SHA for 68996d8 - Browse repository at this point
Copy the full SHA 68996d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22c9e48 - Browse repository at this point
Copy the full SHA 22c9e48View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb5884e - Browse repository at this point
Copy the full SHA fb5884eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f1442f8 - Browse repository at this point
Copy the full SHA f1442f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d52ddc - Browse repository at this point
Copy the full SHA 0d52ddcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51440a3 - Browse repository at this point
Copy the full SHA 51440a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cb9dd0 - Browse repository at this point
Copy the full SHA 2cb9dd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57e71a3 - Browse repository at this point
Copy the full SHA 57e71a3View commit details