how do I make sure `foo` is part of a package? It...
# general
e
how do I make sure
foo
is part of a package? It should be covered by
rglobs(*.py)
in the BUILD file.
e
That's an obscure error from the Pants (v1) setup-py goal. Long story short, Pants v1 expects
__init__.py
to define packages. It expects this as part of a check phase where it ensures you aren't / can't publish the same file in more than one distribution to PyPi. Is it true that you're leveraging Python 3 implicit packages?
If so, you can ignore the warning. That's not too satisfying though.
h
What Pants version are you on?
e
1.16
I guess you could call it an implicit package, as there's no
___init___.py
but there's only one python script in the directory, called
main.py
and adding an
__init__.py
doesn't seem to help with that error anyway
e
An issue will quickly be better for this, but what is the project structure here in terms of paths and BUILDS and targets? For example, it would be good to have a sketch like:
Copy code
src/
  python/
    app/
      BUILD
      main.py
And the command run with full output / possibly with redacted bits if need be:
Copy code
$ ./pants setup-py src/python/app:main