Skip to content

Commit

Permalink
experimental sdist support
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowJonathan committed May 15, 2024
1 parent 9d58632 commit 6afa443
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ wheelhouse/

# pip/enscons build output
soar_sml/
/pyproject.toml

### Soar ###
out/
Expand Down
19 changes: 19 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,25 @@ if enscons_active:

env.WhlFile(source=whl)

# env.FindSourceFiles(whl) +
sdist_sources = env.Glob("Core/*/SConscript") + env.Glob("build_support/*.py") + [
"SConstruct",
"Core/SConscript",
"Core/ClientSMLSWIG/Python/SConscript",
"Core/ClientSMLSWIG/Python/README.md",
"Core/SVS",
] + env.Glob("Core/ClientSMLSWIG/Python/*.i") + env.Glob("Core/ClientSMLSWIG/*.i")

for i in range(0, 5):
for ext in {"h", "c", "cpp", "hpp", "cxx"}:
sdist_sources.extend(
env.Glob("Core/" + ("*/" * i) + "*." + ext)
)

env.SDist(source=sdist_sources,
pyproject=True,
)

# We make sure that an editable (`pip install -e`) installation always properly installs
# the files in the correct places.
env.Depends("editable", py_sources)
Expand Down

0 comments on commit 6afa443

Please sign in to comment.