That worked! Thanks!

On Sun, Nov 3, 2019 at 10:46 PM Alex Grönholm <alex.gronh...@nextday.fi> wrote:
>
> Your setup.cfg seems to be missing the [options.packages.find] section,
> as documented here:
> https://setuptools.readthedocs.io/en/latest/setuptools.html#using-a-src-layout
>
> You need to add this to your setup.cfg:
>
> [options.packages.find]
> where = src
>
> After adding this and installing the resulting sdist, I was able to
> import the svg package.
>
> Lennart Regebro kirjoitti 3.11.2019 klo 21.03:
> > Sure.
> >
> > $ virtualenv /tmp/svgpathtest
> > $ /tmp/svgpathtest/bin/python setup.py sdist
> > $ /tmp/svgpathtest/bin/pip install dist/svg.path-4.0.tar.gz
> > $ /tmp/svgpathtest/bin/python
> >>>> import svg
> > Traceback (most recent call last):
> >    File "<stdin>", line 1, in <module>
> > ImportError: No module named svg
> >
> > I attached a full log, plus the failing package file.
> >
> >
> > On Sun, Nov 3, 2019 at 7:02 PM Alex Grönholm <alex.gronh...@nextday.fi> 
> > wrote:
> >> I was unable to reproduce the issues you're seeing. Could you give
> >> detailed repro instructions?
> >>
> >> Lennart Regebro kirjoitti 3.11.2019 klo 17.46:
> >>> Heya!
> >>>
> >>> I recently moved all the setup.py configuration into setup.cfg for
> >>> Pyroma. That worked very nicely. So I started doing it for my other
> >>> packages, but with svn.path I failed. Everything *looked* fine, and I
> >>> uploaded a 4.0 to PyPI, but if I install that in a virtualenv,
> >>> importing svg or svg.path fails. The Python installation can't find
> >>> them. Declaring them as a namespace means you can import them, but the
> >>> imports are empty, there is no attributes to the modules, so you still
> >>> can't use the package.
> >>>
> >>> Is this possible? And if so, how?
> >>>
> >>> Here's a link to the 4.0 release with all the info in the setup.cfg.
> >>> https://github.com/regebro/svg.path/tree/5f941b729f0b7e3991f238776c9391d57917e0a9
> >>> --
> >>> Distutils-SIG mailing list -- distutils-sig@python.org
> >>> To unsubscribe send an email to distutils-sig-le...@python.org
> >>> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> >>> Message archived at 
> >>> https://mail.python.org/archives/list/distutils-sig@python.org/message/XQJAO65QWJOKJDDNTNX3OETCDFIF2G7G/
> >> --
> >> Distutils-SIG mailing list -- distutils-sig@python.org
> >> To unsubscribe send an email to distutils-sig-le...@python.org
> >> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> >> Message archived at 
> >> https://mail.python.org/archives/list/distutils-sig@python.org/message/SMEYWUGUETBJ3TWXZIFVXCYQQVOQI57X/
--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/archives/list/distutils-sig@python.org/message/HI565AYXXKG7U66W4LC6DAD67UZPC75C/

Reply via email to