Python C extension to compute the permanent.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

23 satır
633B

  1. #!/usr/bin/env python
  2. from distutils.core import setup, Extension
  3. import numpy
  4. setup(
  5. name="permanent",
  6. version="0.1.4",
  7. description="Calculates the permanent of a Numpy matrix",
  8. author="Pete Shadbolt",
  9. author_email="hello@peteshadbolt.co.uk",
  10. maintainer="hello@peteshadbolt.co.uk",
  11. url="https://github.com/peteshadbolt/permanent",
  12. packages=["permanent"],
  13. setup_requires=["numpy"],
  14. ext_modules=[
  15. Extension(
  16. 'permanent.permanent', ['./src/permanent.c'],
  17. extra_compile_args=["-Ofast", "-march=native"],
  18. include_dirs=[numpy.get_include()]),
  19. ],
  20. )