nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 18 lines 746 B view raw
1{ 2 freecad, 3 runCommand, 4}: 5# Check that things such as argument parsing still work correctly with 6# the above PYTHONPATH patch. Previously the patch used above changed 7# the `PyConfig_InitIsolatedConfig` to `PyConfig_InitPythonConfig`, 8# which caused the built-in interpreter to attempt (and fail) to doubly 9# parse argv. This should catch if that ever regresses and also ensures 10# that PYTHONPATH is still respected enough for the FreeCAD console to 11# successfully run and check that it was included in `sys.path`. 12runCommand "freecad-test-console" 13 { 14 nativeBuildInputs = [ freecad ]; 15 } 16 '' 17 HOME="$(mktemp -d)" PYTHONPATH="$(pwd)/test" FreeCADCmd --log-file $out -c "if not '$(pwd)/test' in sys.path: sys.exit(1)" </dev/null 18 ''