Skip to content

Cleanup python/Makefile.am#3213

Merged
stevengj merged 1 commit intoNanoComp:masterfrom
oskooi:python_makefile_cleanup
May 1, 2026
Merged

Cleanup python/Makefile.am#3213
stevengj merged 1 commit intoNanoComp:masterfrom
oskooi:python_makefile_cleanup

Conversation

@oskooi
Copy link
Copy Markdown
Collaborator

@oskooi oskooi commented May 1, 2026

Four cleanups for python/Makefile.am:

  1. Consolidate the two WITH_MPB conditional blocks (lines 13-17 and 19-35). MPBPYTEST is defined in its own block for no reason - it can be merged into the second block, reducing 23 lines to ~15.
  2. Inconsistent $() vs. ${} syntax - lines 61-62 use ${DIFFRACTED_PLANEWAVE_TEST} and ${DISPERSIVE_EIGENMODE_TEST} while every other variable reference uses $(). Both work in GNU Make, but mixing them is needless inconsistency.
  3. Remove the stale comment on lines 251-256 - the Q: Why is this not redundant... comment describes a confusion, not a constraint. The meep: target on line 259 builds a local meep/ package tree for in-tree testing (so import meep works before make install), which is distinct from what pkgpython_PYTHON does at install time. The comment is removed.
  4. Extra blank line at line 234. Minor formatting.

@stevengj stevengj merged commit 98e2b16 into NanoComp:master May 1, 2026
4 checks passed
@oskooi oskooi deleted the python_makefile_cleanup branch May 1, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants