Opened 3 years ago

Last modified 3 years ago

#64457 new defect

build.py script in source code overrides 'build' tool — at Version 1

Reported by: blazewicz (Krzysztof Błażewicz) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: jmroot (Joshua Root)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Change History (1)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Note: See TracTickets for help on using tickets.