patman: add distutils based installer
RFC PATCH 1/1 patman: add distutils based installer
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py install
There are also the usual distutils options for creating source/binary distributions of patman.
---
I've been playing with using patman for Linux development and it occurred to me that patman should really be something that lives on my default $PATH.
It's simple enough to create a distutils configuration that makes this a reality.
One thing that would make sense for this is to make patman a python package to avoid polluting site-packages with generic names like 'test' and 'command'. With a little restructuring it would probably be possible to setup something that works both as an installable package and in-tree as it does today. But before I go down that path I wanted to see if there was a desire for such packaging or do people just add u-boot/tools/patman to their $PATH.
Thanks,
Chris
tools/patman/setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tools/patman/setup.py
tools/patman/setup.py new file +11 -0
@@ -0,0 +1,11 @@ +# +# SPDX-License-Identifier: GPL-2.0+ +# +from distutils.core import setup +setup(name='patman', + version='1.0', + license='GPL-2.0+', + scripts=['patman'], + py_modules=['checkpatch', 'command', 'commit', 'cros_subprocess', + 'get_maintainer', 'gitutil', 'patchstream', 'project', + 'series', 'settings', 'terminal', 'test'])
Signature · 1 line
2.5.0.rc0
RFC PATCH 1/1 patman: add distutils based installer
Quoted 17 lines · Chris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py installThere are also the usual distutils options for creating source/binary distributions of patman.
Signed-off-by Chris Packham <[email protected]>---
I've been playing with using patman for Linux development and it occurred to me that patman should really be something that lives on my default $PATH.It's simple enough to create a distutils configuration that makes this a reality.
Quoted 7 lines
One thing that would make sense for this is to make patman a python package to avoid polluting site-packages with generic names like 'test' and 'command'. With a little restructuring it would probably be possible to setup something that works both as an installable package and in-tree as it does today. But before I go down that path I wanted to see if there was a desire for such packaging or do people just add u-boot/tools/patman to their $PATH.
yes, please!
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
RFC PATCH 1/1 patman: add distutils based installer
In reply to Chris PackhamQuoted 5 lines · Chris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py install
Quoted 8 lines
There are also the usual distutils options for creating source/binary distributions of patman.
Signed-off-by Chris Packham <[email protected]>---
I've been playing with using patman for Linux development and it occurred to me that patman should really be something that lives on my default $PATH.
That's what I do.
Quoted 11 lines
It's simple enough to create a distutils configuration that makes this a reality.
One thing that would make sense for this is to make patman a python package to avoid polluting site-packages with generic names like 'test' and 'command'. With a little restructuring it would probably be possible to setup something that works both as an installable package and in-tree as it does today. But before I go down that path I wanted to see if there was a desire for such packaging or do people just add u-boot/tools/patman to their $PATH.
I think it's a good idea, thanks for looking at it.
Quoted 7 lines
Thanks,
Christools/patman/setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tools/patman/setup.py
Quoted 21 lines
tools/patman/setup.py new file +11
-1@@ -0,0 +1,11 @@ +# +# SPDX-License-Identifier: GPL-2.0+ +# +from distutils.core import setup +setup(name='patman', + version='1.0', + license='GPL-2.0+', + scripts=['patman'], + py_modules=['checkpatch', 'command', 'commit', 'cros_subprocess', + 'get_maintainer', 'gitutil', 'patchstream', 'project', + 'series', 'settings', 'terminal', 'test']) --2.5.0.rc0
RFC PATCH v2 1/1 patman: add distutils based installer
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py install
There are also the usual distutils options for creating source/binary distributions of patman.
---
This gives us something that can be distributed separately as well as in-tree. The import trick allows the python module "patman" to be distributed and enables in-tree use without moving things around. An alternative would be to move the files into a sub directory (unfortunately a directory called "patman" would clash with the existing symlink). I've left this as RFC so that the community can decide if we want to live with this ugliness or come up with something else.
Thanks,
Chris
Changes in v2:
- Install as "patman" package
- Allow running in-tree or out-of-tree
tools/patman/__init__.py | 3 +++ tools/patman/patman.py | 20 ++++++++++++-------- tools/patman/setup.py | 13 +++++++++++++ 3 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 tools/patman/__init__.py create mode 100644 tools/patman/setup.py
tools/patman/__init__.py new file +3 -0
@@ -0,0 +1,3 @@ +__all__ = ['checkpatch', 'command', 'commit', 'cros_subprocess', + 'get_maintainer', 'gitutil', 'patchstream', 'project', + 'series', 'settings', 'terminal', 'test']
tools/patman/patman.py +12 -8
@@ -14,14 +14,18 @@ import sys import unittest # Our modules -import checkpatch -import command -import gitutil -import patchstream -import project -import settings -import terminal -import test +try: + from patman import checkpatch, command, gitutil, patchstream, \ + project, settings, terminal, test +except ImportError: + import checkpatch + import command + import gitutil + import patchstream + import project + import settings + import terminal + import test parser = OptionParser()
tools/patman/setup.py new file +13 -0
@@ -0,0 +1,13 @@ +# +# SPDX-License-Identifier: GPL-2.0+ +# +from distutils.core import setup +setup(name='patman', + version='1.0', + license='GPL-2.0+', + scripts=['patman'], + packages=['patman'], + package_dir={'patman': ''}, + package_data={'patman': ['README']}, + classifiers=['Environment :: Console', + 'Topic :: Software Development'])
Signature · 1 line
2.5.0.rc0
RFC PATCH v2 1/1 patman: add distutils based installer
Hi Chris,
Quoted 7 lines · Chris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py installThere are also the usual distutils options for creating source/binary distributions of patman.
This looks good but can you please add a note to the patman README about how to install it?
Quoted 85 lines
Signed-off-by Chris Packham <[email protected]>---
This gives us something that can be distributed separately as well as in-tree. The import trick allows the python module "patman" to be distributed and enables in-tree use without moving things around. An alternative would be to move the files into a sub directory (unfortunately a directory called "patman" would clash with the existing symlink). I've left this as RFC so that the community can decide if we want to live with this ugliness or come up with something else.Thanks,
ChrisChanges in v2:
- Install as "patman" package
- Allow running in-tree or out-of-treetools/patman/__init__.py | 3 +++ tools/patman/patman.py | 20 ++++++++++++-------- tools/patman/setup.py | 13 +++++++++++++ 3 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 tools/patman/__init__.py create mode 100644 tools/patman/setup.pytools/patman/__init__.py new file +3
-0@@ -0,0 +1,3 @@ +__all__ = ['checkpatch', 'command', 'commit', 'cros_subprocess', + 'get_maintainer', 'gitutil', 'patchstream', 'project', + 'series', 'settings', 'terminal', 'test']tools/patman/patman.py +12
-8@@ -14,14 +14,18 @@ import sys import unittest # Our modules -import checkpatch -import command -import gitutil -import patchstream -import project -import settings -import terminal -import test +try: + from patman import checkpatch, command, gitutil, patchstream, \ + project, settings, terminal, test +except ImportError: + import checkpatch + import command + import gitutil + import patchstream + import project + import settings + import terminal + import test parser = OptionParser()tools/patman/setup.py new file +13
-1@@ -0,0 +1,13 @@ +# +# SPDX-License-Identifier: GPL-2.0+ +# +from distutils.core import setup +setup(name='patman', + version='1.0', + license='GPL-2.0+', + scripts=['patman'], + packages=['patman'], + package_dir={'patman': ''}, + package_data={'patman': ['README']}, + classifiers=['Environment :: Console', + 'Topic :: Software Development']) --
Quoted 2 lines
2.5.0.rc0
Regards,
Simon
PATCH v3 1/1 patman: add distutils based installer
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py install
There are also the usual distutils options for creating source/binary distributions of patman.
---
This gives us something that can be distributed separately as well as in-tree. The import trick allows the python module "patman" to be distributed and enables in-tree use without moving things around. An alternative would be to move the files into a sub directory (unfortunately a directory called "patman" would clash with the existing symlink).
Thanks,
Chris
Changes in v3:
- Add installation instructions to tools/patman/README
- Drop RFC, Add sign-off
- Collect tested tag from Simon
Changes in v2:
- Install as "patman" package
- Allow running in-tree or out-of-tree
tools/patman/README | 11 +++++++++++ tools/patman/__init__.py | 3 +++ tools/patman/patman.py | 20 ++++++++++++-------- tools/patman/setup.py | 13 +++++++++++++ 4 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 tools/patman/__init__.py create mode 100644 tools/patman/setup.py
tools/patman/README +11 -0
@@ -135,6 +135,17 @@ Similar to the above, but skip the first commit and take the next 5. This is useful if your top commit is for setting up testing. +How to install it +================= + +The most up to date version of patman can be found in the U-boot sources. +However to use it on other projects it may be more convenient to install it as +a standalone application. A distutils installer is included, this can be used +to install patman: + +$ cd tools/patman && python setup.py install + + How to add tags ===============
tools/patman/__init__.py new file +3 -0
@@ -0,0 +1,3 @@ +__all__ = ['checkpatch', 'command', 'commit', 'cros_subprocess', + 'get_maintainer', 'gitutil', 'patchstream', 'project', + 'series', 'settings', 'terminal', 'test']
tools/patman/patman.py +12 -8
@@ -14,14 +14,18 @@ import sys import unittest # Our modules -import checkpatch -import command -import gitutil -import patchstream -import project -import settings -import terminal -import test +try: + from patman import checkpatch, command, gitutil, patchstream, \ + project, settings, terminal, test +except ImportError: + import checkpatch + import command + import gitutil + import patchstream + import project + import settings + import terminal + import test parser = OptionParser()
tools/patman/setup.py new file +13 -0
@@ -0,0 +1,13 @@ +# +# SPDX-License-Identifier: GPL-2.0+ +# +from distutils.core import setup +setup(name='patman', + version='1.0', + license='GPL-2.0+', + scripts=['patman'], + packages=['patman'], + package_dir={'patman': ''}, + package_data={'patman': ['README']}, + classifiers=['Environment :: Console', + 'Topic :: Software Development'])
Signature · 1 line
2.5.0.rc0
PATCH v3 1/1 patman: add distutils based installer
Hi Chris,
Quoted 31 lines · Chris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py installThere are also the usual distutils options for creating source/binary distributions of patman.
Tested-by Simon Glass <[email protected]>Signed-off-by Chris Packham <[email protected]>---
This gives us something that can be distributed separately as well as in-tree. The import trick allows the python module "patman" to be distributed and enables in-tree use without moving things around. An alternative would be to move the files into a sub directory (unfortunately a directory called "patman" would clash with the existing symlink).Thanks,
ChrisChanges in v3:
- Add installation instructions totools/patman/README
- Drop RFC, Add sign-off
- Collect tested tag from SimonChanges in v2:
- Install as "patman" package
- Allow running in-tree or out-of-tree
Quoted 7 lines
tools/patman/README | 11 +++++++++++ tools/patman/__init__.py | 3 +++ tools/patman/patman.py | 20 ++++++++++++-------- tools/patman/setup.py | 13 +++++++++++++ 4 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 tools/patman/__init__.py create mode 100644 tools/patman/setup.py
BTW in the README it should be U-Boot with a capital b. I can fix that up when I apply it if you like. For me I needed 'sudo' on the python command. Is that expected?
Regards
Simon
PATCH v3 1/1 patman: add distutils based installer
2015-07-23 11:10 GMT+09:00 Simon Glass <[email protected]>:
Quoted 11 lines
Hi Chris,
Quoted 8 lines · Chris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py installThere are also the usual distutils options for creating source/binary distributions of patman.
Maybe we should split patman into a separate project someday. It is not tightly coupled with the u-boot core.
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH v3 1/1 patman: add distutils based installer
Quoted 9 lines · Masahiro Yamada
2015-07-23 11:10 GMT+09:00 Simon Glass <[email protected]>:
Quoted 8 lines
Hi Chris,
Quoted 5 lines · Chris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py install
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
There are also the usual distutils options for creating source/binary distributions of patman.
Maybe we should split patman into a separate project someday. It is not tightly coupled with the u-boot core.
It could be treated the same way the git project treats gitk and git-gui. The sources are still included in the main project and distributed along with the rest of it but they are merged from an external upstream where the real development happens. The upstream project is also free to make releases on whatever schedule they determine (although these days there isn't much development going on in for gitk/git-gui).
PATCH v3 1/1 patman: add distutils based installer
Hi Chris,
Quoted 9 lines · Chris Packham
Quoted 7 lines · Masahiro Yamada
2015-07-23 11:10 GMT+09:00 Simon Glass <[email protected]>:
Quoted 6 lines
Hi Chris,
Quoted 3 lines · Chris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
cd u-boot/tools/patman && python setup.py installThere are also the usual distutils options for creating source/binary distributions of patman.
Applied to u-boot-x86, thanks!
Quoted 5 lines
Quoted 4 lines
Maybe we should split patman into a separate project someday. It is not tightly coupled with the u-boot core.
Quoted 7 lines
It could be treated the same way the git project treats gitk and git-gui. The sources are still included in the main project and distributed along with the rest of it but they are merged from an external upstream where the real development happens. The upstream project is also free to make releases on whatever schedule they determine (although these days there isn't much development going on in for gitk/git-gui).
That sounds like a useful model. However there are so few patches to patman - is it worth it?
Regards,
Simon
PATCH v3 1/1 patman: add distutils based installer
Quoted 11 lines · Simon Glass
Quoted 7 lines · Chris Packham
It could be treated the same way the git project treats gitk and git-gui. The sources are still included in the main project and distributed along with the rest of it but they are merged from an external upstream where the real development happens. The upstream project is also free to make releases on whatever schedule they determine (although these days there isn't much development going on in for gitk/git-gui).
That sounds like a useful model. However there are so few patches to patman - is it worth it?
Sure it is; I have asked it in past I think.
I would like to have it in Debian, Arch and other linux distros and get more people using it to manage patch series. It is hard to explain it can be used for other project it being inside U-Boot source code.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH v3 1/1 patman: add distutils based installer
Hi Otavio,
Quoted 10 lines · Otavio Salvador
Quoted 9 lines · Simon Glass
Quoted 7 lines · Chris Packham
It could be treated the same way the git project treats gitk and git-gui. The sources are still included in the main project and distributed along with the rest of it but they are merged from an external upstream where the real development happens. The upstream project is also free to make releases on whatever schedule they determine (although these days there isn't much development going on in for gitk/git-gui).
Quoted 8 lines
Quoted 2 lines
That sounds like a useful model. However there are so few patches to patman - is it worth it?
Sure it is; I have asked it in past I think.
I would like to have it in Debian, Arch and other linux distros and get more people using it to manage patch series. It is hard to explain it can be used for other project it being inside U-Boot source code.
OK so if we do this, what's the best way to get a repo and a mailing list?
Quoted 5 lines
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Regards,
Simon
PATCH v3 1/1 patman: add distutils based installer
Quoted 15 lines · Simon Glass
Quoted 13 lines · Otavio Salvador
Quoted 11 lines · Simon Glass
Quoted 7 lines · Chris Packham
It could be treated the same way the git project treats gitk and git-gui. The sources are still included in the main project and distributed along with the rest of it but they are merged from an external upstream where the real development happens. The upstream project is also free to make releases on whatever schedule they determine (although these days there isn't much development going on in for gitk/git-gui).
That sounds like a useful model. However there are so few patches to patman - is it worth it?
Quoted 7 lines
Quoted 5 lines
Sure it is; I have asked it in past I think.
I would like to have it in Debian, Arch and other linux distros and get more people using it to manage patch series. It is hard to explain it can be used for other project it being inside U-Boot source code.
OK so if we do this, what's the best way to get a repo and a mailing list?
I would try github or kernel.org if possible.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH v3 1/1 patman: add distutils based installer
Hi Otavio,
Quoted 18 lines · Otavio Salvador
Quoted 17 lines · Simon Glass
Quoted 15 lines · Otavio Salvador
Quoted 11 lines · Simon Glass
Quoted 7 lines · Chris Packham
It could be treated the same way the git project treats gitk and git-gui. The sources are still included in the main project and distributed along with the rest of it but they are merged from an external upstream where the real development happens. The upstream project is also free to make releases on whatever schedule they determine (although these days there isn't much development going on in for gitk/git-gui).
That sounds like a useful model. However there are so few patches to patman - is it worth it?
Sure it is; I have asked it in past I think.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
I would like to have it in Debian, Arch and other linux distros and get more people using it to manage patch series. It is hard to explain it can be used for other project it being inside U-Boot source code.
OK so if we do this, what's the best way to get a repo and a mailing list?
I would try github or kernel.org if possible.
I can't see mailing lists in github.
I've sent a request to kernel.org, and copied you.
Regards,
Simon
PATCH v3 1/1 patman: add distutils based installer
Quoted 24 lines · Simon Glass
Quoted 22 lines · Otavio Salvador
Quoted 21 lines · Simon Glass
Quoted 18 lines · Otavio Salvador
Quoted 11 lines · Simon Glass
Quoted 7 lines · Chris Packham
It could be treated the same way the git project treats gitk and git-gui. The sources are still included in the main project and distributed along with the rest of it but they are merged from an external upstream where the real development happens. The upstream project is also free to make releases on whatever schedule they determine (although these days there isn't much development going on in for gitk/git-gui).
That sounds like a useful model. However there are so few patches to patman - is it worth it?
Sure it is; I have asked it in past I think.
I would like to have it in Debian, Arch and other linux distros and get more people using it to manage patch series. It is hard to explain it can be used for other project it being inside U-Boot source code.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
OK so if we do this, what's the best way to get a repo and a mailing list?
I would try github or kernel.org if possible.
I can't see mailing lists in github.
Sure but it has issues and pull requests. Likely what we need.
Quoted 1 line
I've sent a request to kernel.org, and copied you.
Great :-)
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH v3 1/1 patman: add distutils based installer
Hi Otavio,
Quoted 29 lines · Otavio Salvador
Quoted 28 lines · Simon Glass
Quoted 25 lines · Otavio Salvador
Quoted 15 lines · Simon Glass
Quoted 13 lines · Otavio Salvador
Quoted 11 lines · Simon Glass
Quoted 7 lines · Chris Packham
It could be treated the same way the git project treats gitk and git-gui. The sources are still included in the main project and distributed along with the rest of it but they are merged from an external upstream where the real development happens. The upstream project is also free to make releases on whatever schedule they determine (although these days there isn't much development going on in for gitk/git-gui).
That sounds like a useful model. However there are so few patches to patman - is it worth it?
Quoted 7 lines
Quoted 5 lines
Sure it is; I have asked it in past I think.
I would like to have it in Debian, Arch and other linux distros and get more people using it to manage patch series. It is hard to explain it can be used for other project it being inside U-Boot source code.
OK so if we do this, what's the best way to get a repo and a mailing list?
I would try github or kernel.org if possible.
Quoted 7 lines
Quoted 1 line
I can't see mailing lists in github.
Sure but it has issues and pull requests. Likely what we need.
Quoted 1 line
I've sent a request to kernel.org, and copied you.
Great :-)
It doesn't look like Greg is keen. I'll take a look at github.
Regards,
Simon
PATCH v3 1/1 patman: add distutils based installer
Quoted 35 lines · Simon Glass
Hi Otavio,
Quoted 31 lines · Otavio Salvador
Quoted 29 lines · Simon Glass
Quoted 18 lines · Otavio Salvador
Quoted 17 lines · Simon Glass
Quoted 15 lines · Otavio Salvador
Quoted 11 lines · Simon Glass
Quoted 7 lines · Chris Packham
It could be treated the same way the git project treats gitk and git-gui. The sources are still included in the main project and distributed along with the rest of it but they are merged from an external upstream where the real development happens. The upstream project is also free to make releases on whatever schedule they determine (although these days there isn't much development going on in for gitk/git-gui).
That sounds like a useful model. However there are so few patches to patman - is it worth it?
Sure it is; I have asked it in past I think.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
I would like to have it in Debian, Arch and other linux distros and get more people using it to manage patch series. It is hard to explain it can be used for other project it being inside U-Boot source code.
OK so if we do this, what's the best way to get a repo and a mailing list?
I would try github or kernel.org if possible.
I can't see mailing lists in github.
Quoted 8 lines
Quoted 5 lines
Sure but it has issues and pull requests. Likely what we need.
Quoted 1 line
I've sent a request to kernel.org, and copied you.
Great :-)
It doesn't look like Greg is keen. I'll take a look at github.
I should really read all my mail before starting to reply :).
GitHub seems appropriate. As you've already identified having a mailing list is one thing missing, but perhaps given the low volume of changes it won't be missed (on a side note that was one of the useful things sourceforge could provide before they went evil). You could even go as far as setting up an organisation for patman (looks like there are a few other "patman" repositories).
PATCH v3 1/1 patman: add distutils based installer
In reply to Simon GlassQuoted 42 lines · Simon Glass
Hi Chris,
Quoted 31 lines · Chris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with
cd u-boot/tools/patman && python setup.py installThere are also the usual distutils options for creating source/binary distributions of patman.
Tested-by Simon Glass <[email protected]>Signed-off-by Chris Packham <[email protected]>---
This gives us something that can be distributed separately as well as in-tree. The import trick allows the python module "patman" to be distributed and enables in-tree use without moving things around. An alternative would be to move the files into a sub directory (unfortunately a directory called "patman" would clash with the existing symlink).Thanks,
ChrisChanges in v3:
- Add installation instructions totools/patman/README
- Drop RFC, Add sign-off
- Collect tested tag from SimonChanges in v2:
- Install as "patman" package
- Allow running in-tree or out-of-treeQuoted 7 lines
tools/patman/README | 11 +++++++++++ tools/patman/__init__.py | 3 +++ tools/patman/patman.py | 20 ++++++++++++-------- tools/patman/setup.py | 13 +++++++++++++ 4 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 tools/patman/__init__.py create mode 100644 tools/patman/setup.py
Quoted 4 lines
Acked-by Simon Glass <[email protected]>BTW in the README it should be U-Boot with a capital b. I can fix that up when I apply it if you like.
Yes thanks.
Quoted 2 lines
For me I needed 'sudo' on the python
command. Is that expected?
Depending on your OS and where you want to install it yes. You could also use
$ python setup.py install --user
or
$ python setup.py install --home=~
or even
$ python setup.py bdist_rpm $ sudo rpm -i dist/patman-1.0-1.noarch.rpm
distutils[1] provides lots of knobs for how you might want to install packages (except for .deb, I have no idea why bdist_deb isn't a thing).
--
[1] - https://docs.python.org/2/install/index.html#install-index