30 Commits
Author SHA1 Message Date
97c2ec9541 DOC: Add f2py distribution guide for meson-python
Add a complete tutorial for packaging F2PY extensions as installable
Python distributions using meson-python as the PEP 517 build backend.

Covers project layout, pyproject.toml configuration, meson.build with
dependency('numpy'), wheel building via pypa/build, editable installs,
Fortran compiler selection, BLAS/LAPACK dependencies, and comparison
with scikit-build-core.

Also fixes the pandas intersphinx URL (moved to pandas.pydata.org/docs).

Closes #25199

Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
Co-authored-by: Matti Picus <matti.picus@gmail.com>
2026-03-15 21:19:25 +01:00
mattip d0a14ac3c6 remove numpy.distutils 2025-12-02 02:14:14 +02:00
Dimitri PapadopoulosandJoren Hammudoglu 493facec3b STY: Take into account reviewer's comments
Co-authored-by: Joren Hammudoglu <jhammudoglu@gmail.com>
2025-04-27 11:55:44 +02:00
Dimitri Papadopoulos Orfanos c31e599938 CI: pycodestyle → ruff (#27300)
* CI: pycodestyle → ruff check

* MAINT: Apply ruff/pycodestyle rule E101

E101 Indentation contains mixed spaces and tabs

* MAINT: Apply ruff/pycodestyle rule E111

E111 Indentation is not a multiple of 4

* MAINT: Apply ruff/pycodestyle rule E116

E116 Unexpected indentation (comment)

* MAINT: Apply ruff/pycodestyle rule E117

E117 Over-indented

* MAINT: Apply ruff/pycodestyle rule E201

E201 Whitespace after bracket

* MAINT: Apply ruff/pycodestyle rule E202

E202 Whitespace before bracket

* MAINT: Apply ruff/pycodestyle rule E203

E203 Whitespace before punctuation

* MAINT: Apply ruff/pycodestyle rule E211

E211 Whitespace before '('

* MAINT: Apply ruff/pycodestyle rule E221

E221 Multiple spaces before operator

* MAINT: Apply ruff/pycodestyle rule E222

E222 Multiple spaces after operator

* MAINT: Apply ruff/pycodestyle rule E225

E225 Missing whitespace around operator

* MAINT: Apply ruff/pycodestyle rule E226

E226 Missing whitespace around arithmetic operator

* MAINT: Apply ruff/pycodestyle rule E227

E227 Missing whitespace around bitwise or shift operator

* MAINT: Apply ruff/pycodestyle rule E228

E228 Missing whitespace around modulo operator

* MAINT: Apply ruff/pycodestyle rule E252

E252 Missing whitespace around parameter equals

* MAINT: Apply ruff/pycodestyle rule E261

E261 Insert at least two spaces before an inline comment

* MAINT: Apply ruff/pycodestyle rule E271

E271 Multiple spaces after keyword

* MAINT: Apply ruff/pycodestyle rule E272

E272 Multiple spaces before keyword

* MAINT: Apply ruff/pycodestyle rule E275

E275 Missing whitespace after keyword

* MAINT: Apply ruff/pycodestyle rule E301

E301 Expected 1 blank line between methods

* MAINT: Apply ruff/pycodestyle rule E303

E303 Too many blank lines

* MAINT: Apply ruff/pycodestyle rule E304

E304 Blank lines found after function decorator

* MAINT: Apply ruff/pycodestyle rule E305

E305 Expected 2 blank lines after class or function definition

* MAINT: Apply ruff/pycodestyle rule E306

E306 Expected 1 blank line before a nested definition

* MAINT: Apply ruff/pycodestyle rule E501

E501 Line too long

* MAINT: Disable ruff/pycodestyle rule E714 in tests

E714 Test for object identity should be `is not`

* MAINT: Apply ruff/pycodestyle rule E743

E743 Ambiguous function name

* MAINT: Disable E501 for now

Ruff has found 1080 occurrences of this error. Fixing them sounds excessive.
2024-12-16 08:34:22 -07:00
mattip e8f7d3471c BUILD: clean out py2 stuff from npy_3kcompat.h 2024-07-03 14:47:45 +03:00
Rohit Goswami e21392bcb3 MAINT: Move files and add links to documentation
For f2py
2024-01-16 22:26:44 +05:30
Rohit Goswami 9228f044ee DOC: Add documentation on using fypp with f2py 2024-01-16 22:26:42 +05:30
Rohit Goswami f8fb517a8a MAINT: Kill all instances of f2py.compile 2023-11-23 15:38:40 +00:00
Rohit Goswami 6fe296cff6 MAINT,TST: No printing in f2py tests 2023-04-16 18:57:07 +00:00
Ralf GommersandStefan van der Walt 4002a7d421 BLD: enable building NumPy with Meson
This enables building with NumPy on Linux and macOS. Windows support
should be complete to, but is untested as of now and may need a few
tweaks. This contains:
- A set of `meson.build` files and related code generation script
  tweaks, header templates, etc.
- One CI job on Linux
- Basic docs on using Meson to build NumPy (not yet integrated in the
  html docs, it's too early for that - this is for early adopters right
  now).

The build should be complete, with the major exception of SIMD support.
The full test suite passes. See gh-22546 for the tracking issue with
detailed notes on the plan for switching NumPy to Meson as its build
system.

Co-authored-by: Stefan van der Walt <stefanv@berkeley.edu>
2022-11-25 12:37:46 +01:00
Namami Shanker ed7791f0fa DOC: Correct f2py doc meson.build example 2022-06-23 18:47:56 +05:30
Namami Shanker 6d8281ca6a DOC: Add f2cmap flag doc 2022-06-23 18:47:56 +05:30
Rohit Goswami 5c0ecb5289 MAINT,DOC: Fix doc fragments and tests 2022-06-05 19:50:03 +00:00
Brigitta Sipőcz d4d5771e17 MAINT: Python <3.8 related cleanups 2022-05-23 09:29:59 -07:00
Rohit Goswami cec19d7658 Merge pull request #21187 from HaoZeke/f2pyDeterminism
ENH: F2PY build output determinism
2022-04-29 16:04:04 +00:00
Namami Shanker 50ce363ca0 DOC: Add F2PY test documentation 2022-04-12 20:44:33 +05:30
Rohit GoswamiandRalf Gommers 4b73c2d37b ENH: Switch to a negative flag
Also remove FutureWarning and update documentation

Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
2022-03-21 11:43:56 +00:00
Rohit Goswami 1954088c05 DOC: Reword for new emptygen behaviour 2022-03-21 03:05:54 +00:00
Rohit Goswami be70a249b5 DOC: Update documentation and usage 2022-03-12 23:27:24 +00:00
melissawm 148baf608d Fixing formatting 2022-01-05 14:13:10 -03:00
melissawm 9867da9994 Responding to review comments 2022-01-05 14:13:10 -03:00
Henry Schreiner c8fdb53ee2 DOC: use FindPython instead of FindPython3 (#20447) 2021-11-29 10:36:17 +01:00
Henry Schreiner 9f9cec1b37 fix: get scikit-build example working 2021-11-23 17:06:06 -05:00
Henry Schreiner b880c466be DOC: nicer CMake example
This updates the CMake example with several improvements.
* The modern CLI usage (3.14+) is used for configurting and building (plain CMake and scikit-build examples)
* Removed CXX variable setting (not a CXX project)
* Ensured Python 3.7+ is discoverd, and also avoid requiring Development.Embed (component not present in some places like manylinux)
* Nicer include directory listing
* Drop unused varaible
* Use FindPython's integrated module support
* Avoid directory-level settings, use only target level settings instead (as noted in the orignal comment - also this was originally directory scope, not project scope)
2021-11-22 11:56:13 -05:00
36041a0d0e DOC: Address build system review I
Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
Co-authored-by: Christoph Buchner <bilderbuchi@phononoia.at>
Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
2021-11-16 15:03:23 +00:00
Rohit Goswami a5bc4c124f DOC: Update meson and f2py for automated wrappers 2021-11-15 21:07:38 +00:00
Rohit GoswamiandNick Wogan 9ce67e20ab DOC: Add F77 scikit-build example
Co-authored-by: Nick Wogan <wogan@uw.edu>
2021-11-15 03:49:21 +00:00
Rohit Goswami ee7989868a DOC: Add CMake with F2PY 2021-11-15 03:49:21 +00:00
HaoZeke 4def9d0c89 DOC: Detail Meson and F2PY usage 2021-11-15 03:49:20 +00:00
Rohit Goswami 156c005422 MAINT,DOC: Refactor, syntax highlighting for f2py 2021-09-19 17:52:00 +00:00