Forráskód Böngészése

python3-lazy-object-proxy: Remove __pycache__ from packaging

They make the package non-reproducible morever these are cache files anyway

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj 5 napja
szülő
commit
19cbdbcac6

+ 5 - 0
meta-python/recipes-devtools/python/python3-lazy-object-proxy_1.12.0.bb

@@ -11,3 +11,8 @@ SRC_URI[sha256sum] = "1f5a462d92fd0cfb82f1fab28b51bfb209fabbe6aabf7f0d51472c0c12
 PYPI_PACKAGE = "lazy_object_proxy"
 
 inherit pypi python_setuptools_build_meta
+
+do_install:append() {
+	# contain moddate, makes is non-reproducible
+	rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/lazy_object_proxy/__pycache__/*.cpython-*.pyc
+}