Make python things work in the sandbox
Everything seems to be plotting now, and graph_edit draws again.
Change-Id: I2aceb13577c0d7529e3169f89e2d0c71612f3a47
diff --git a/debian/BUILD b/debian/BUILD
index a052657..7ab6705 100644
--- a/debian/BUILD
+++ b/debian/BUILD
@@ -36,6 +36,10 @@
":arm_frc_gnueabi_deps.bzl",
arm_frc_gnueabi_deps_debs = "files",
)
+load(
+ ":python_gtk.bzl",
+ python_gtk_debs = "files",
+)
load("//debian:packages.bzl", "download_packages", "generate_deb_tarball")
filegroup(
@@ -46,6 +50,30 @@
visibility = ["@matplotlib//:__pkg__"],
)
+filegroup(
+ name = "python_shapely_patches",
+ srcs = [
+ "python_shapely_init.patch",
+ ],
+ visibility = ["@python_gtk//:__pkg__"],
+)
+
+filegroup(
+ name = "python_gi_patches",
+ srcs = [
+ "python_gi_init.patch",
+ ],
+ visibility = ["@python_gtk//:__pkg__"],
+)
+
+filegroup(
+ name = "python_geos_patches",
+ srcs = [
+ "python_geos.patch",
+ ],
+ visibility = ["@python_gtk//:__pkg__"],
+)
+
py_binary(
name = "download_packages",
srcs = [
@@ -143,6 +171,7 @@
],
packages = [
"python-matplotlib",
+ "python-tk",
"python3-matplotlib",
],
)
@@ -164,6 +193,25 @@
],
)
+download_packages(
+ name = "download_python_gtk_deps",
+ excludes = [
+ "fonts-freefont",
+ "gsettings-backend",
+ "libpng-dev",
+ "libz-dev",
+ "python3-dev",
+ "python3",
+ ],
+ packages = [
+ "libgtk-3-dev",
+ "python3-cairo",
+ "python3-gi",
+ "python3-gi-cairo",
+ "python3-shapely",
+ ],
+)
+
generate_deb_tarball(
name = "python",
files = python_debs,
@@ -208,3 +256,8 @@
name = "arm_frc_gnueabi_deps",
files = arm_frc_gnueabi_deps_debs,
)
+
+generate_deb_tarball(
+ name = "python_gtk",
+ files = python_gtk_debs,
+)