Opened 5 years ago

Closed 5 years ago

#57868 closed defect (fixed)

Dependency 'py37-apptools' not found for installing py37-mayavi

Reported by: bernard-giroux (Bernard Giroux) Owned by: jjstickel (Jonathan Stickel)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: py-mayavi

Description

sudo port install py37-mayavi

results in

--->  Computing dependencies for py37-mayavi
Error: Dependency 'py37-apptools' not found.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port py37-mayavi failed

Change History (7)

comment:1 Changed 5 years ago by mf2k (Frank Schima)

Owner: set to jjstickel
Port: py-mayavi added; py37-mayavi removed
Status: newassigned

In the future, please add the port maintainer(s) to Cc (port info --maintainers py37-mayavi), if any.

comment:2 Changed 5 years ago by jjstickel (Jonathan Stickel)

Hi, I'm pretty busy right now. This should be an easy fix. Just add 37 to the python.versions line in the Portfile, like so:

python.versions     27 35 36 37

If it works for you, and you are able to create a PR, that would be great. Otherwise I'll get to it when I can.

comment:3 Changed 5 years ago by bernard-giroux (Bernard Giroux)

I'm not familiar with macports developments, sorry if I'm doing stupid things... I have edited /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-apptools/Portfile to have

{521}torngat:~% cat /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-apptools/Portfile
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0
PortGroup           github 1.0

github.setup        enthought apptools 4.4.0

name                py-apptools
categories-append   devel
license             BSD
maintainers         {gmail.com:jjstickel @jjstickel} openmaintainer
supported_archs     noarch

description         The Enthought apptools package
long_description    The Enthought Tool Suite includes a set of packages\
    that we have found useful in creating a number of applications.\
    They implement functionality that is commonly needed by many applications.\
    These packages are distributed together as the AppTools project.
platforms           darwin

checksums           rmd160  004958cc00d28caf83045497c813880cdbf7f1ee \
                    sha256  eb80e3ba421de2c3665a7f83bd3e3588d291013b3dd1d46e816124d62a53e163

python.versions     27 35 36 37

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    depends_lib-append      port:py${python.version}-configobj\
                            port:py${python.version}-traitsui
}

But no luck...

{522}torngat:~% sudo port install py37-apptools
Error: Port py37-apptools not found

comment:4 in reply to:  3 Changed 5 years ago by jjstickel (Jonathan Stickel)

Replying to bernard-giroux:

I'm not familiar with macports developments, sorry if I'm doing stupid things... I have edited /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-apptools/Portfile to have

It's usually better to copy the Portfile to a local repository and make changes to it there:

https://guide.macports.org/chunked/development.local-repositories.html

Otherwise your changes will get overridden the next time you do a sync or selfupdate. If you want to test as is, you should be able to do sudo portindex in the folder /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/. That should bring in the py37 subport.

comment:5 Changed 5 years ago by bernard-giroux (Bernard Giroux)

Got it working with a local Portfile modified to have

python.versions     27 35 36 37

A PR is a pull request? As a end user of macports, I don't have the source tree on my machine...

comment:6 Changed 5 years ago by jjstickel (Jonathan Stickel)

Hey, great, thanks for letting me know! Yes, PR means pull request. To make a PR, you start by forking and cloning the macports port repository. But that is not expected of everyone. I'll get to fixing this one soon.

comment:7 Changed 5 years ago by jjstickel (Jonathan Stickel)

Resolution: fixed
Status: assignedclosed

In f339a4f43d169cc9aa07b44d3d20826aa2d8806c/macports-ports (master):

py-apptools: add py37 subport

  • add py37 subport as needed for py37-mayavi

Closes: #57868

Note: See TracTickets for help on using tickets.