[libcamera-devel] libcamera: Add Python cache and compiled files to .gitignore

Message ID 20200501003653.9217-1-laurent.pinchart@ideasonboard.com
State Accepted
Commit 6adb37d7194d87df2dbccb8cc88b4b59100bbcd7
Headers show
Series
  • [libcamera-devel] libcamera: Add Python cache and compiled files to .gitignore
Related show

Commit Message

Laurent Pinchart May 1, 2020, 12:36 a.m. UTC
To prepare for more widespread use of Python in libcamera, ignore Python
cache and compiled files produced when importing modules directly from
the source tree.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)

Comments

Niklas Söderlund May 1, 2020, 2:38 a.m. UTC | #1
Hi Laurent,

Thanks for your work.

On 2020-05-01 03:36:53 +0300, Laurent Pinchart wrote:
> To prepare for more widespread use of Python in libcamera, ignore Python
> cache and compiled files produced when importing modules directly from
> the source tree.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>

> ---
>  .gitignore | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/.gitignore b/.gitignore
> index e00516aaa716..f989dee3bcb0 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -1,3 +1,5 @@
> +__pycache__/
>  build/
>  patches/
>  *.patch
> +*.pyc
> -- 
> Regards,
> 
> Laurent Pinchart
> 
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel@lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel

Patch

diff --git a/.gitignore b/.gitignore
index e00516aaa716..f989dee3bcb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@ 
+__pycache__/
 build/
 patches/
 *.patch
+*.pyc