How to create my own Python Primesieve port

Kenneth Wolcott kennethwolcott at gmail.com
Thu May 14 02:34:54 UTC 2026


I've read and re-read the two replies I received; and I've
experimented a bit with the concept.  It looks like I still need to
digest this quite a bit more.  Hopefully soon I'll grok this well
enough to actually make progress.

Ken

On Wed, May 6, 2026 at 9:30 PM contextnerror <contextnerror at gmail.com> wrote:
>
> Since I have found upt helpful in the past, here’s a brief overview:
>
> You only need to install the upt port `port install upt`. This includes a frontend for pypi and a backend for MacPorts, but you can confirm which ones you have by running `upt list-frontends` or `upt list-backends`.
>
> Once you have those you can run `upt package -f pypi -b macports primesieve` to create a MacPorts port from pypi. The output will make a port template that you then modify as needed.
> Primesieve of course can be replaced with anything else for other ports.
>
> More detailed instructions can be found at https://github.com/macports/upt-macports and https://framagit.org/upt/upt
>
> As a side note, pypi2port also exists as an option, but I have never managed to get it to work personally.
>
> > On May 6, 2026, at 6:15 PM, Kenneth Wolcott <kennethwolcott at gmail.com> wrote:
> >
> > How to create my own Python Primesieve port? (how to use upt?)
> >
> > I've done some research (obviously more research is required!)
> > regarding using "upt" to "port" a Python package to a MacPorts port.
> >
> > I seems like I need to install the following MacPorts ports: "upt" and
> > "py413-upt-macports". But I think I need a Python "frontend"...
> >
> > I think I need a hint about this so that I don't go off on a tangent...
> >
> > If this works, I'd be thrilled.
> >
> > I don't think I'm ready to become a port creater and/or maintainer (yikes!)
> >
> > Thanks in advance for a little help...
> >
> > Thanks,
> > Ken Wolcott
>


More information about the macports-users mailing list