Skip to content

Commit

Permalink
Use build key instead of setup.py for mypyc build
Browse files Browse the repository at this point in the history
  • Loading branch information
rorre committed Sep 5, 2021
1 parent f3caf0d commit f92890b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 45 deletions.
16 changes: 16 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from mypyc.build import mypycify

extensions = mypycify(
[
"frames2osb/convert.py",
"frames2osb/helper.py",
"frames2osb/pixels",
"frames2osb/quadtree",
]
)


def build(setup_kwargs):
"""Build extension modules."""
kwargs = dict(ext_modules=extensions, zip_safe=False)
setup_kwargs.update(kwargs)
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
description = "Turns (video) frames to osu!storyboard"
authors = ["Rendy Arya Kemal <[email protected]>"]
license = "MIT"
build = 'build.py'

[tool.poetry.dependencies]
python = ">3.8,<3.11"
Expand All @@ -18,5 +19,5 @@ black = {version = "^21.7b0", allow-prereleases = true}
types-Pillow = "^8.3.3"

[build-system]
requires = ["poetry-core>=1.0.0"]
requires = ["poetry-core>=1.0.0", "mypy"]
build-backend = "poetry.core.masonry.api"
44 changes: 0 additions & 44 deletions setup.py

This file was deleted.

0 comments on commit f92890b

Please sign in to comment.