> I'm not uploading any wheels only the sources to pypi.

I know; sources are Python version agnostic, so there's no handle on how to
restrict the version; hence the idea of publishing wheels instead of
sources. There appears to be another option though, see [1].

[1] https://stackoverflow.com/a/42792413/353337



On Mon, Nov 6, 2017 at 4:03 PM Guido Günther <a...@sigxcpu.org> wrote:

> Hi,
> On Mon, Nov 06, 2017 at 02:53:11PM +0000, Nico Schlömer wrote:
> > Thanks for following up on this.
> >
> > > But this is not Python2.
> >
> > This is the culprit. I installed gbp with pip on my system, with pip
> > defaulting to python2, which leads to an array of errors, e.g., the
> > encoding error from above. Perhaps one way of preventing pip2-installs
> from
> > pypi is to create wheels with
> > ```
> > python3 setup.py bdist_wheel
> > ```
> > (not `python setup.py bdist_wheel --universal`); see [1].
>
> I'm not uploading any wheels only the sources to pypi. I have no idea
> how to make pip not use modules that are "Programming Language :: Python
> :: 3" with Python2.
>
> Cheers,
>  -- Guido
>

Reply via email to