[PATCH 07/15] patman: Rename directory to patmanu

Simon Glass sjg at chromium.org
Sun Feb 19 23:03:24 CET 2023


Hi Sean,

On Sun, 19 Feb 2023 at 12:51, Sean Anderson <seanga2 at gmail.com> wrote:
>
> On 2/19/23 13:50, Simon Glass wrote:
> > Hi Sean,
> >
> > On Sun, 19 Feb 2023 at 09:49, Sean Anderson <seanga2 at gmail.com> wrote:
> >>
> >> On 2/19/23 09:51, Simon Glass wrote:
> >>> The name 'patman' is already taken in PyPi so use 'patmanu' as the name
> >>> of the package. Rename the source directory accordingly.
> >>
> >> Can't we just have a pypi package named e.g. patch-manager while the actual
> >> package name stays the same?
> >
> > That's exactly what I tried at first. When I use 'from patman import
> > xxx' I seem to need patman to be the actual package name. So I ended
> > up making it the same in the source tree as in the package.
> >
> > Do you know of a way around that? I would much prefer something like that.
> >
>
> I thought it was as simple as something like
>
> from setuptools import setup
> setup(name='patch-manager',
>        version='1.0',
>        license='GPL-2.0+',
>        scripts=['patman'],
>        packages=['patman'],
>        package_dir={'patman': ''},
>        package_data={'patman': ['README.rst']},
>        classifiers=['Environment :: Console',
>                     'Topic :: Software Development'])

But that is the setup file..I am trying to create something for use
with pip. I am using a .toml file.

But I am pretty new to this so may be missing something.

I made some changes along the lines of what you said and pushed the tree here:

https://github.com/sjg20/u-boot/tree/pata2-try

Could you please take a look and advise how to do this? You can run with:

$ scripts/make_pip.sh patman -n

Regards,
Simon


More information about the U-Boot mailing list