Re: [gtk-osx-users] High Sierra issues

On Jun 25, 2018, at 4:07 AM, Timo via Gtk-osx-users-list <gtk-osx-users-list gnome org> wrote:

Op 03-06-18 om 02:31 schreef John Ralls:
On Jun 2, 2018, at 1:24 PM, Christoph Reiter<reiter christoph gmail com>  wrote:

On Sat, Jun 2, 2018 at 9:56 PM, John Ralls<jralls ceridwen us>  wrote:

Well, I can easily add your pixman patch if you'll do a PR. I've hit the "six" issue but with gtk-doc rather than glib. I'm not sure why I didn't hit it this time, maybe PyPI is installing it somewhere global instead of into $PREFIX. The problem with it is that I haven't figured out a good way to handle PyPI in jhbuild. I've experimentally added a couple of modules by tarball reference in unstable, but it's a PITA because they have ugly URIs and PyPI doesn't keep old releases so it breaks every time there's a new package.
It's a bit hidden, but you can access pypi releases by package/filename:
That's not much help, they still take the old versions down as soon as a new one goes up, breaking the module.
Chiming in here. It should be fine in my experience. You can browse the release history to get the correct links:

Here's an example moduleset to install six from PyPI. Six 1.11.0 is the latest version, below it's set to 1.10.0 to test the fixed/older version.

<?xml version="1.0"?>
<!DOCTYPE moduleset SYSTEM "moduleset.dtd">
<?xml-stylesheet type="text/xsl" href=""?>
    <metamodule id="python-deps">
            <dep package="six"/>
    <repository type="tarball" name="pypi"
        href=""" style="font-family: TrebuchetMS; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">"/>
    <distutils id="six">
        <branch repo="pypi" version="1.10.0"

Used with:

$ jhbuild -m pypi.modules build six

Rerun install phase of Glib and no problems.

For others who come here through Google, a quick manual way to install six without downloading and moving files like OP is the following:

Drop to the jhbuild shell when glib installation fails
$ curl -o
$ python
$ pip install six
$ exit
Rerun phase install


Thanks, I didn’t know about the history trick. I’m not sure that that works with all packages, but at least six will get one through the core modules.

BTW, no need to download anything to get pip on your mac, `python -m ensurepip` works.

Meanwhile I’ve made good progress with pyenv and pipenv to set up a py3 environment and I’m almost ready to write a new Since Gnome is clearly headed towards Meson for all of core and Apple shows no sign of providing py3 it seems to be the best way forward. As an added benefit it means that any needed pypi packages can easily be installed up front with pip, avoiding all of the tarball hide-and-seek stuff.

John Ralls

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]