Opened 3 years ago

Closed 3 years ago

#62905 closed defect (worksforme)

editing local macports-ports/python/py-pytorch Portfile has no effect

Reported by: webbp (Webb Phillips) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-pytorch

Description

I can edit most python/py-xxx/Portfiles then selfupdate and immediately see the changes with e.g. port info, port install. However, this is not the case with py-pytorch. Anyone have any idea why?

I have a local repo and my sources.conf looks like this:

file:///Users/webb/src/macports-ports/ [default]
rsync://rsync.macports.org/macports/release/tarballs/ports.tar

Change History (6)

comment:1 Changed 3 years ago by webbp (Webb Phillips)

Port: py-pytorch added

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Check port dir py-pytorch.

comment:3 Changed 3 years ago by webbp (Webb Phillips)

port dir py-pytorch
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/python/py-pytorch
port dir py37-pytorch
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/python/py-pytorch

May  2 14:50 CET /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/python/py-pytorch/Portfile
May 17 02:04 CET ~/src/macports-ports/python/py-pytorch/Portfile
Last edited 3 years ago by webbp (Webb Phillips) (previous) (diff)

comment:4 Changed 3 years ago by jmroot (Joshua Root)

If that's the copy you're editing, then selfupdate will wipe out any changes you make, because it's an rsync source.

Also, is /Users/webb/src/macports-ports/ a full copy of the official ports tree? If not, you probably want the [default] tag on the other line instead of there.

Last edited 3 years ago by jmroot (Joshua Root) (previous) (diff)

comment:5 Changed 3 years ago by webbp (Webb Phillips)

/Users/webb/src/macports-ports/ is a full copy and I am editing /Users/webb/src/macports-ports/python/py-pytorch/Portfile

Thanks for telling me about the port dir command!

With that, I've solved the problem now, although i'm not sure what step fixed it. I removed /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/python/py-pytorch, included only my local repo in sources.conf, ran selfupdate, and then port info py-pytorch yielded Error: Port py-pytorch not found (but it still could find other ports). Now I checked out local repo py-pytorch/Portfile and modified only the description and revision, did selfupdate, and now port dir py37-pytorch yields /Users/webb/src/macports-ports/python/py-pytorch as desired. It seems plausible that I had an error in my modified Portfile and selfupdate was falling back to the rsync.macports.org version.

Last edited 3 years ago by webbp (Webb Phillips) (previous) (diff)

comment:6 Changed 3 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

OK, glad you got it working.

Note: See TracTickets for help on using tickets.