On Sat, Mar 16, 2019 at 09:48:21PM +0000, Stuart Henderson wrote:
> On 2019/03/16 22:12, Remi Locherer wrote:
> > This adds TEST_ENV to python.port.mk. Plus it adds MODPY_PYTEST and
> > MODPY_PYTEST_ARGS to deal with "-m pytest". I counted a bit more than
> > 70 ports using this testing method.
> > 
> > I added productivity/vdirsyncer as an example.
> > 
> > OK?
> 
> This looks a sane approach,
> 
> > Remi
> > 
> > 
> > Index: lang/python/python.port.mk
> > ===================================================================
> > RCS file: /cvs/ports/lang/python/python.port.mk,v
> > retrieving revision 1.100
> > diff -u -p -r1.100 python.port.mk
> > --- lang/python/python.port.mk      4 Dec 2018 05:57:31 -0000       1.100
> > +++ lang/python/python.port.mk      16 Mar 2019 20:40:34 -0000
> > @@ -150,6 +150,7 @@ CONFIGURE_ENV +=        PYTHON="${MODPY_BIN}"
> >  CONFIGURE_ENV +=   ac_cv_prog_PYTHON="${MODPY_BIN}" \
> >                     ac_cv_path_PYTHON="${MODPY_BIN}"
> >  .endif
> > +TEST_ENV +=                LC_CTYPE=C.UTF-8
> 
> Do we actually support LC_CTYPE=C.UTF-8?
> 

According to "locale -a" we do.

I proposed C.UTF-8 because I think this is what python prefers after skimming
over https://www.python.org/dev/peps/pep-0538/ .

Reply via email to