diff options
author | Quentin Schulz <foss@0leil.net> | 2020-10-18 19:57:12 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-04 10:55:01 +0000 |
commit | 3ae9ead271454db3aa07ae3f6267d58241a641db (patch) | |
tree | 29016a52981f330bf5d7d9f2323362840e734787 /documentation/dev-manual/dev-manual-common-tasks.rst | |
parent | cbad23de16eef6f5c2082b950fcee56299cb6024 (diff) | |
download | poky-3ae9ead271454db3aa07ae3f6267d58241a641db.tar.gz |
docs: dev-manual-common-tasks: update python webserver example to python3
SimpleHTTPServer is python2 only, the module in python3 is http.server.
Let's use this one since everything in Yocto Project is using python3
nowadays.
(From yocto-docs rev: a5922b045eca9aa96672f8d75a2f98e17d2280f7)
Signed-off-by: Quentin Schulz <foss@0leil.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 75338f17b116afadb7360181d071875a68272708)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual/dev-manual-common-tasks.rst')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.rst b/documentation/dev-manual/dev-manual-common-tasks.rst index b200e3eef3..8e26398d84 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.rst +++ b/documentation/dev-manual/dev-manual-common-tasks.rst | |||
@@ -7223,11 +7223,11 @@ Host or Server Machine Setup | |||
7223 | 7223 | ||
7224 | Although other protocols are possible, a server using HTTP typically | 7224 | Although other protocols are possible, a server using HTTP typically |
7225 | serves packages. If you want to use HTTP, then set up and configure a | 7225 | serves packages. If you want to use HTTP, then set up and configure a |
7226 | web server such as Apache 2, lighttpd, or SimpleHTTPServer on the | 7226 | web server such as Apache 2, lighttpd, or Python web server on the |
7227 | machine serving the packages. | 7227 | machine serving the packages. |
7228 | 7228 | ||
7229 | To keep things simple, this section describes how to set up a | 7229 | To keep things simple, this section describes how to set up a |
7230 | SimpleHTTPServer web server to share package feeds from the developer's | 7230 | Python web server to share package feeds from the developer's |
7231 | machine. Although this server might not be the best for a production | 7231 | machine. Although this server might not be the best for a production |
7232 | environment, the setup is simple and straight forward. Should you want | 7232 | environment, the setup is simple and straight forward. Should you want |
7233 | to use a different server more suited for production (e.g. Apache 2, | 7233 | to use a different server more suited for production (e.g. Apache 2, |
@@ -7242,7 +7242,7 @@ setting of "package_rpm": | |||
7242 | :: | 7242 | :: |
7243 | 7243 | ||
7244 | $ cd ~/poky/build/tmp/deploy/rpm | 7244 | $ cd ~/poky/build/tmp/deploy/rpm |
7245 | $ python -m SimpleHTTPServer | 7245 | $ python3 -m http.server |
7246 | 7246 | ||
7247 | .. _runtime-package-management-target: | 7247 | .. _runtime-package-management-target: |
7248 | 7248 | ||