[MacPorts] #64457: build.py script in source code overrides 'build' tool

MacPorts noreply at macports.org
Mon Jan 17 00:31:13 UTC 2022


#64457: build.py script in source code overrides 'build' tool
------------------------+--------------------
  Reporter:  blazewicz  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.1
Resolution:             |   Keywords:
      Port:             |
------------------------+--------------------
Description changed by ryandesign:

Old description:

> I found this issue while investigating
> https://trac.macports.org/ticket/64425.
>
> When source code of Python project contains a script called `build.py` or
> a submodule called `build` it will override global installation of the
> {{{build}}} tool. This is when MacPorts invokes {{{/path/to/python -m
> build ...}}} local script/module will be invoked instead of intended
> tool. In such cases pep517 build will always fail.
>
> Issue begun after https://github.com/macports/macports-
> ports/commit/e94c8a1 and so far I found that it affects {{{py-pendulum}}}
> port.

New description:

 I found this issue while investigating #64425.

 When source code of Python project contains a script called `build.py` or
 a submodule called `build` it will override global installation of the
 {{{build}}} tool. This is when MacPorts invokes {{{/path/to/python -m
 build ...}}} local script/module will be invoked instead of intended tool.
 In such cases pep517 build will always fail.

 Issue begun after [e94c8a1f8531ced6e1d765849193e36a590425c9/macports-
 ports] and so far I found that it affects {{{py-pendulum}}} port.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/64457#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list