Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions pxd/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,10 @@ VENVDIR=${BUILD_ROOT:-$(realpath $(dirname $0))/build}/$(basename $(pwd))-$(echo

if [ ! -d $VENVDIR ]; then
python3 -m venv $VENVDIR
$VENVDIR/bin/pip install pysdl2 pysdl2-dll Cython setuptools
fi
source $VENVDIR/bin/activate

python3 setup.py build "$@" \
--build-base "$BUILDDIR/base" \
--build-purelib "$BUILDDIR/purelib" \
--build-lib "$BUILDDIR/lib" \
--build-scripts "$BUILDDIR/scripts" \
--build-temp "$BUILDDIR/temp" \
--parallel 4
pip install -e .

cat >rosettaboy-release <<EOD
#!/usr/bin/env bash
Expand Down
37 changes: 37 additions & 0 deletions pxd/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[project]
name = "rosettaboy"
version = "0.0.0"
readme = "README.md"
dependencies = [
"pysdl2",
"pysdl2-dll",
"Cython",
"setuptools"
]

[project.scripts]
rosettaboy-pxd = "src.main:cli_main"

[project.optional-dependencies]
test = [
"mypy ~= 1.9",
]

[build-system]
requires = ["setuptools", "cython"]

[tool.setuptools]
ext-modules = [
{name = "src", sources = ["src/*.py"], libraries=["SDL2"]} # You can also specify all the usual options like language or include_dirs
# ext_modules=cythonize(
# module_list=[Extension(name="*", sources=["src/*.py"], libraries=["SDL2"])],
# annotate=True,
# compiler_directives={
# "language_level": 3,
# "profile": True,
# "annotation_typing": True,
# },
# include_path=["src", "include"],
# )
]

24 changes: 0 additions & 24 deletions pxd/setup.py

This file was deleted.