Skip to content

Commit

Permalink
finishing
Browse files Browse the repository at this point in the history
  • Loading branch information
timelessnesses committed Feb 22, 2023
1 parent bba6545 commit 710e918
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@
if not extra_link_args and not extra_compile_args:
print("No extra arguments for linking or compiling. You may not see any symbols exported.")

ext = []
sqrt = Extension('quake_inverse_sq._sqrt', sources=['quake_inverse_sq/_sqrt.c'], extra_link_args=extra_link_args, extra_compile_args=extra_compile_args)

if not '--no-ext' in sys.argv:
sqrt = Extension('quake_inverse_sq._sqrt', sources=['quake_inverse_sq/_sqrt.c'], extra_link_args=extra_link_args, extra_compile_args=extra_compile_args)
ext.append(sqrt)
else:
ext = None
setup(
name="quake-inverse-squareroot",
version="0.0.4",
description="A Python port from Quake 3's fast inverse square root algorithm",
ext_modules=ext,
ext_modules=[sqrt],
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/timelessnesses/quake-inverse-squareroot',
Expand Down

0 comments on commit 710e918

Please sign in to comment.