[MacPorts] #51702: libusb-1.0 python wrapper
#51702: libusb-1.0 python wrapper ------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: py27-libusb1 ------------------------+-------------------------------- "port lint --nitpick py27-libusb1" gave me the error, that 'openmaintainer' is not allowed... However, I don't think that I can maintain this port. I just want to share the Portfiles I've written and that worked for me. -- Ticket URL: <https://trac.macports.org/ticket/51702> MacPorts <https://www.macports.org/> Ports system for OS X
#51702: libusb-1.0 python wrapper -------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-libusb1 | -------------------------+-------------------------------- Changes (by mf2k@…): * version: 2.3.4 => * port: py27-libusb1 => py-libusb1 Comment: Notes: - {{{openmaintainer}}} still requires a maintainer, hence the error. You want {{{nomaintainer}}}. - Use the Github portgroup to simplify the portfile. - The stub port should not have any dependencies. Add an {{{if {${name} ne ${subport}}}}} block for them. - The python portgroup already sets the category. So instead of overriding {{{categories}}}, use {{{categories-append devel}}} - Delete the {{{revision}}} line because 0 is the default. -- Ticket URL: <https://trac.macports.org/ticket/51702#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51702: libusb-1.0 python wrapper -------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-libusb1 | -------------------------+-------------------------------- Comment (by anett_as@…): Thanks for the comments. I tried to address all of them to improve the portfile. Replying to [comment:1 mf2k@…]:
Notes: - {{{openmaintainer}}} still requires a maintainer, hence the error. You want {{{nomaintainer}}}. - Use the Github portgroup to simplify the portfile. - The stub port should not have any dependencies. Add an {{{if {${name} ne ${subport}}}}} block for them. - The python portgroup already sets the category. So instead of overriding {{{categories}}}, use {{{categories-append devel}}} - Delete the {{{revision}}} line because 0 is the default.
-- Ticket URL: <https://trac.macports.org/ticket/51702#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51702: libusb-1.0 python wrapper -------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-libusb1 | -------------------------+-------------------------------- Comment (by mf2k@…): Thanks. I just noticed that the only dependency, libusb, has a devel port (libusb-devel). It would be preferable to allow either of them to satisfy the dependency by using a [https://guide.macports.org/#reference.dependencies.types file dependency] instead of a port dependency. -- Ticket URL: <https://trac.macports.org/ticket/51702#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51702: libusb-1.0 python wrapper -------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-libusb1 | -------------------------+-------------------------------- Comment (by anett_as@…): I converted the port dependency to a file (lib) dependency. -- Ticket URL: <https://trac.macports.org/ticket/51702#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#51702: libusb-1.0 python wrapper -------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-libusb1 | -------------------------+-------------------------------- Comment (by mf2k@…): It looks like this port supports python 3.4 and 3.5. Please add those if it does. Then it looks ready to commit! -- Ticket URL: <https://trac.macports.org/ticket/51702#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#51702: libusb-1.0 python wrapper -------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-libusb1 | -------------------------+-------------------------------- Comment (by anett_as@…): You are right. When trying to install the port for python 3.5, I realized that there is another dependency (py-setuptools). I added this. Maybe one can omit the python.default line now? -- Ticket URL: <https://trac.macports.org/ticket/51702#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#51702: libusb-1.0 python wrapper -------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-libusb1 | -------------------------+-------------------------------- Comment (by mf2k@…): I get a checksum error when I try to build it: {{{ $ sudo port install py35-libusb1 ---> Computing dependencies for py35-libusb1 ---> Fetching archive for py35-libusb1 ---> Attempting to fetch py35-libusb1-1.5.0_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/py35-libusb1 ---> Attempting to fetch py35-libusb1-1.5.0_0.darwin_15.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/py35-libusb1 ---> Attempting to fetch py35-libusb1-1.5.0_0.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/py35-libusb1 ---> Fetching distfiles for py35-libusb1 ---> Attempting to fetch python-libusb1-1.5.0.tar.gz from https://distfiles.macports.org/py-libusb1 ---> Attempting to fetch python-libusb1-1.5.0.tar.gz from http://sea.us.distfiles.macports.org/macports/distfiles/py-libusb1 ---> Attempting to fetch python-libusb1-1.5.0.tar.gz from https://github.com/vpelletier/python-libusb1/tarball/1.5.0 ---> Verifying checksums for py35-libusb1 Error: Checksum (rmd160) mismatch for python-libusb1-1.5.0.tar.gz Error: Checksum (sha256) mismatch for python-libusb1-1.5.0.tar.gz Error: Failed to checksum py35-libusb1: Unable to verify file checksums Error: See /opt/local/var/macports/logs /_opt_mports_trunk_dports_python_py-libusb1/py35-libusb1/main.log for details. Error: Follow http://guide.macports.org/#project.tickets to report a bug. Error: Processing of port py35-libusb1 failed }}} -- Ticket URL: <https://trac.macports.org/ticket/51702#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#51702: libusb-1.0 python wrapper -------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-libusb1 | -------------------------+-------------------------------- Comment (by anett_as@…): I never got this error. However, when I delete .../macports/distfiles/py- libusb1 folder, I can reproduce the problem. Maybe it is due to the change to the github portgroup. Nevertheless I corrected the checksums... Hopefully it works now. Replying to [comment:7 mf2k@…]:
I get a checksum error when I try to build it:
-- Ticket URL: <https://trac.macports.org/ticket/51702#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#51702: libusb-1.0 python wrapper -------------------------+-------------------------------- Reporter: anett_as@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-libusb1 | -------------------------+-------------------------------- Comment (by mf2k@…): OK it builds for me now. But I was poking around after it built and I have some more comments: - Can the examples directory be installed? - The [https://github.com/vpelletier/python- libusb1/blob/master/README.rst#id4 readme] mentions dependencies on cpython and pypy. Do those need to be added? -- Ticket URL: <https://trac.macports.org/ticket/51702#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts