Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 2020 14:29:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 242463] devel/mercurial: Update to 5.4
Message-ID:  <bug-242463-21822-wyKMgsVpdj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-242463-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-242463-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242463

--- Comment #39 from Peter Wullinger <freebsd@dhke.de> ---
(In reply to Charlie Li from comment #38)
> Kind of annoying since distutils/autoplist doesn't pick up __modulepolicy=
__.py since it is auto-generated.

Somewhere around the patch to 5.3.1 my changes for setup.py to include
__modulepolicy__.py and derivations in the list of reported output files got
dropped:

def get_outputs(self, include_bytecode=3D1):
    from itertools import chain
    import importlib
    extra_modules =3D [os.path.join(self.build_lib, 'mercurial',
'__modulepolicy__.py')]
    extra_outputs =3D list(extra_modules)
    if include_bytecode:
        for extra_module in extra_modules:
            if self.compile:
                extra_outputs.append(
                    importlib.util.cache_from_source(filename, optimization=
=3D'')
                )
                if self.optimize > 0:
                    extra_outputs.append(
                        importlib.util.cache_from_source(filename,
optimization=3Dself.optimize)
                    )
    return chain(
        build_py.get_outputs(self),
        extra_outputs
    )

I consider this rather crude, but the proper fix should probably happen
upstream, anyway.

I'm not sure why

SHEBANG_FILES=3D  contrib/*

does not apply shebangfix to hgweb.cgi (but does properly update hgweb.fcgi=
).

--=20
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242463-21822-wyKMgsVpdj>