Migrate everything to upstream pip packages

This patch migrates all the Python packages I could find to the
packages provided by rules_python. It's possible that there are some
that I missed. In that case, the finder will have to migrate it on
their own.

A future patch will remove the remaining references to the
Debian-packaged Python packages in future patches. This patch here is
solely focused on migrating the existing users.

Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: Ic7a8ba6110516aa2446ad2ad4e2495fab62d824c
diff --git a/frc971/control_loops/python/BUILD b/frc971/control_loops/python/BUILD
index ef7b31b..7b46439 100644
--- a/frc971/control_loops/python/BUILD
+++ b/frc971/control_loops/python/BUILD
@@ -26,10 +26,10 @@
     legacy_create_init = False,
     target_compatible_with = ["@platforms//cpu:x86_64"],
     deps = [
-        "//external:python-gflags",
-        "//external:python-glog",
         "//frc971/control_loops/python:controls",
-        "@matplotlib_repo//:matplotlib3",
+        "@pip//glog",
+        "@pip//matplotlib",
+        "@pip//python_gflags",
     ],
 )
 
@@ -48,8 +48,8 @@
     target_compatible_with = ["@platforms//cpu:x86_64"],
     deps = [
         ":python_init",
-        "//external:python-glog",
-        "@python_repo//:scipy",
+        "@pip//glog",
+        "@pip//scipy",
     ],
 )
 
@@ -76,7 +76,7 @@
     deps = [
         ":controls",
         ":python_init",
-        "@matplotlib_repo//:matplotlib3",
+        "@pip//matplotlib",
     ],
 )
 
@@ -89,7 +89,7 @@
     deps = [
         ":controls",
         ":python_init",
-        "@matplotlib_repo//:matplotlib3",
+        "@pip//matplotlib",
     ],
 )
 
@@ -116,7 +116,7 @@
     deps = [
         ":libspline",
         ":python_init",
-        "@python_repo//:numpy",
+        "@pip//numpy",
     ],
 )
 
@@ -130,8 +130,8 @@
         ":controls",
         ":drivetrain",
         ":python_init",
-        "//external:python-glog",
-        "@matplotlib_repo//:matplotlib3",
+        "@pip//glog",
+        "@pip//matplotlib",
     ],
 )
 
@@ -152,7 +152,7 @@
         ":controls",
         "//aos/util:py_trapezoid_profile",
         "//frc971/control_loops:python_init",
-        "@matplotlib_repo//:matplotlib3",
+        "@pip//matplotlib",
     ],
 )
 
@@ -165,7 +165,7 @@
         ":controls",
         "//aos/util:py_trapezoid_profile",
         "//frc971/control_loops:python_init",
-        "@matplotlib_repo//:matplotlib3",
+        "@pip//matplotlib",
     ],
 )
 
@@ -193,8 +193,10 @@
         ":drawing_constants",
         ":libspline",
         ":python_init",
-        "@matplotlib_repo//:matplotlib3",
-        "@python_gtk",
+        "@pip//matplotlib",
+        "@pip//numpy",
+        "@pip//pygobject",
+        "@pip//scipy",
     ],
 )
 
@@ -208,7 +210,7 @@
     deps = [
         ":constants",
         ":python_init",
-        "@python_gtk",
+        "@pip//pygobject",
     ],
 )
 
@@ -235,7 +237,7 @@
         ":controls",
         ":linear_system",
         ":python_init",
-        "//external:python-gflags",
-        "//external:python-glog",
+        "@pip//glog",
+        "@pip//python_gflags",
     ],
 )