Skip to content

Commit

Permalink
revert back to old setuppy
Browse files Browse the repository at this point in the history
  • Loading branch information
viggo-devries committed Dec 4, 2024
1 parent ca6469c commit 50bd19f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
from setuptools import setup
# this setup.py script is completely generated dynamically by poetry and
# is needed to be able to integrate this project in tools that are based on setuptools
from pathlib import Path

setup()
from poetry.core.factory import Factory
from poetry.core.masonry.builders.sdist import SdistBuilder

# let poetry construct setupt.py
cwd_path = Path(".").resolve()
poetry = Factory().create_poetry()
sdist_builder = SdistBuilder(poetry)
setup_py = sdist_builder.build_setup()

# run setup in the current context
exec(setup_py, globals(), locals())

0 comments on commit 50bd19f

Please sign in to comment.