Skip to content

generate-bindings: Rework for offline builds#20

Closed
JPEWdev wants to merge 1 commit intospdx:mainfrom
JPEWdev:generate-bindings
Closed

generate-bindings: Rework for offline builds#20
JPEWdev wants to merge 1 commit intospdx:mainfrom
JPEWdev:generate-bindings

Conversation

@JPEWdev
Copy link
Collaborator

@JPEWdev JPEWdev commented Feb 25, 2026

Reworks the way that generate-bindings works to make it more suitable for offline builds. Specifically:

  1. Re-write as a python script to make it easier to maintain
  2. Download model files manually instead of having shacl2code do it
  3. Add options to control when downloading occurs. Options are
    "always", "never", and "if-missing".
  4. Allow SPDX_PYTHON_MODEL_DOWNLOAD environment variable to control
    when downloading occurs (so it can be set when building the python
    package)
  5. Move the script out of the "gen" directory to "scripts"
  6. Ensure the script always produces output in the "gen" directory,
    even if it is run from elsewhere.

@JPEWdev JPEWdev force-pushed the generate-bindings branch 2 times, most recently from 82fe420 to 4a33e00 Compare February 25, 2026 18:04
@JPEWdev JPEWdev requested a review from bact February 25, 2026 18:04
Reworks the way that generate-bindings works to make it more suitable
for offline builds. Specifically:
 1) Re-write as a python script to make it easier to maintain
 2) Download model files manually instead of having shacl2code do it
 3) Add options to control when downloading occurs. Options are
    "always", "never", and "if-missing".
 4) Allow SPDX_PYTHON_MODEL_DOWNLOAD environment variable to control
    when downloading occurs (so it can be set when building the python
    package)
 5) Move the script out of the "gen" directory to "scripts"
 6) Ensure the script always produces output in the "gen" directory,
    even if it is run from elsewhere.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
@JPEWdev
Copy link
Collaborator Author

JPEWdev commented Feb 25, 2026

#19 is preferred

@JPEWdev JPEWdev closed this Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant