Page MenuHomePhabricator

packaging: add the config file for PyOxidizer

Authored by mharbison72 on Nov 13 2019, 11:41 PM.


Group Reviewers

This is the current file I'm using on Mac. It *seems* like we can get away with
a single config file for all platforms, so this platform agnostic location might
work. I'm not sure how to pyoxidizer init . to setup the other things when
this file exists.

Things mostly work on Mac, but there are a number of __file__ references that
need to be worked around, and the templates and default.d config needs to be
moved to a package so that they can be accessed as resources.

hg config --debug shows it looking at an extra config path near the
executable. This may be a side effect of being frozen, for py2app support. The
executable is ~33MB, so it would be nice to slim it down. Especially since
there are a lot of instances of __file__ in these unused modules that trigger
build warnings.

I'm not sure what the plans are to test this. I've been using

python3 run-tests --with-hg=/path/to/oxidizedhg

That emits a warning that --with-hg should point to an hg script, but it
seems to surface problems. The recent work has been mostly in test-help*.
There are other errors in there when doing this, like
complaining that it can't import mercurial.

Diff Detail

rHG Mercurial
Lint Skipped
Unit Tests Skipped

Event Timeline

mharbison72 created this revision.Nov 13 2019, 11:41 PM
mharbison72 planned changes to this revision.

This isn't meant to be queued. I posted this to share with @martinvonz , and give it better visibility to anyone else interested than an IRC paste.

mharbison72 abandoned this revision.Nov 16 2019, 9:04 PM

D7450 has the new style config file.