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

MacPorts noreply at macports.org
Mon Jan 17 05:01:24 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:             |
------------------------+--------------------

Comment (by jmroot):

 Yes, python will search for modules in the current directory first. So
 when running `python -m foo`, any file `foo.py` in the current dir will be
 executed instead of a module `foo` installed in site-packages.

 https://docs.python.org/3/library/sys.html#sys.path

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


More information about the macports-tickets mailing list