Commit Graph

10 Commits

Author SHA1 Message Date
Atsushi Togo 942b1f5e01 c-long was changed to int64_t. 2025-01-26 21:29:32 +09:00
Atsushi Togo 71dcf84108 Define complex for VC 2024-12-23 15:45:51 +09:00
Atsushi Togo 232f22318c Option to run without linking BLAS and LAPACK in C 2024-11-23 20:36:37 +09:00
Atsushi Togo 756ada6e07 Change of build system using cmake
Following issue#99, attempting changing build system.
This commit includes the build system by combination with cmake.
2022-08-28 07:59:41 +09:00
Nick Papior 3635eca7be enh: major refactoring of setup.py
Instead of manually adding compilers and flags it is
now left to the user to create the appropriate site.cfg
for configuration purposes.

This is much cleaner and provides users to fully customize the build.

This also enables pip installs, for instance I can build:

   pip3 install . -vvv

Which works.
In order for pip to fully function with the numpy versions it
is important that pip uses the oldest possible numpy version
that may be pip installed. This is what oldest-supported-numpy
is for.

The PHPYOPENMP flag is not needed. The OPENMP specification states
that any C-compiler which implements preprocessor statements should
include _OPENMP when compiling with OPENMP. Therefore we simply check
for this now. I don't know of any compilers that do not define this
flag while compiling for openmp.

When retrieving MKL from numpy there is an additional macro defined:
  SCIPY_MKL_H
so now the code checks for either this macro, or the old one (MKL_LAPACKE).

I have removed support for distutils. It is far deprecated and no installations
should use this one. So better to not rely on it.
In fact it was never used since pyproject.toml had setuptools as a requirement for
building the package. So it couldn't be used in these environments in
any case.

If this is to be adopted, then the installation documentation should be updated.
2021-12-07 10:18:55 +01:00
Atsushi Togo 69122431e7 Refactoring 2021-11-02 22:08:54 +09:00
Atsushi Togo 2a474567d8 Formatted c files by VScode 2021-10-12 15:56:14 +09:00
Atsushi Togo 1be2a1c004 Added #ifdef PHPYOPENMP for all pragma 2021-04-12 18:24:48 +09:00
Atsushi Togo af42b5206a Add grid system module in c 2021-04-07 21:51:06 +09:00
Atsushi Togo 9d0f335e38 Move c files on a flat directory 2021-01-26 11:10:19 +09:00