Skip to content

Commit

Permalink
chore: update setup.py with default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
hrz6976 committed Jun 13, 2024
1 parent ebbbef7 commit edb58ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@
),
]

_default_args = ["build_ext", "--inplace"]
# if no arguments are provided, use the default ones
if len(os.sys.argv) == 1:
os.sys.argv.extend(_default_args)

setup(
name="python-woc",
ext_modules=cythonize(ext_modules, emit_linenums=True),
packages=PACKAGES,
package_data={"": ["*.pyx", "*.pxd", "*.pxi"]},
package_data={"": ["*.pyx", "*.pxd", "*.pyi"]},
include_package_data=True,
script_args=["build_ext", "--inplace"],
)

0 comments on commit edb58ef

Please sign in to comment.