[Bug 242463] devel/mercurial: Update to 5.4

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 19 14:29:47 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242463

--- Comment #39 from Peter Wullinger <freebsd at 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=1):
    from itertools import chain
    import importlib
    extra_modules = [os.path.join(self.build_lib, 'mercurial',
'__modulepolicy__.py')]
    extra_outputs = 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='')
                )
                if self.optimize > 0:
                    extra_outputs.append(
                        importlib.util.cache_from_source(filename,
optimization=self.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=  contrib/*

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

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


More information about the freebsd-python mailing list