Switch to python3 and scipy from slycot
Turns out we need python3 matplotlib to make scipy work well enough to
place the poles correctly for our systems. Rather than do it piecemeal,
do it all at once.
This includes a python opencv upgrade too to support the new python, and
a matplotlib upgrade.
Change-Id: Ic7517b5ebbfdca9cc90ae6a61d86b474f2f21b29
diff --git a/debian/matplotlib.bzl b/debian/matplotlib.bzl
index e647682..d94efd9 100644
--- a/debian/matplotlib.bzl
+++ b/debian/matplotlib.bzl
@@ -1,102 +1,52 @@
files = {
- "adwaita-icon-theme_3.22.0-1+deb9u1_all.deb": "9f956279c715b657f590370751ee91e74376fe06b18cf35a05930b13bb1737a6",
- "blt_2.5.3+dfsg-3_amd64.deb": "69377b5d18f14caf2aeb24cba3bf12b4cbac18c7c715f60b39200aa7d025561c",
- "coreutils_8.26-3_amd64.deb": "ef6c0ab3d52a7d3e85ba4a9c04a1931264d34bab842da6e1428c8c4bda28a800",
- "fontconfig-config_2.11.0-6.7_all.deb": "8226e3a525fef6aee3268929d15ed8352a7edfa263b8f70e3eb1a0962e772e27",
- "fontconfig_2.11.0-6.7+b1_amd64.deb": "6976c5e1b690c9c92f55a1c53f57094fdb86e619481d2e903561436cc2235b73",
+ "blt_2.5.3+dfsg-4_amd64.deb": "624e1c02bc1e72fa77523f514a606b7b7da3399def37995d016955b8d950584b",
+ "coreutils_8.30-3_amd64.deb": "ae6e5cd6e9aaf74d66edded3931a7a6c916625b8b890379189c75574f6856bf4",
+ "fontconfig-config_2.13.1-2_all.deb": "9f5d34ba20eb156ef62d8126866a376be985c6a83fdcfb33f12cd83acac480c2",
"fonts-dejavu-core_2.37-1_all.deb": "58d21a255606191e6512cca51f32c4480e7a798945cc980623377696acfa3cfc",
- "fonts-liberation_1.07.4-2_all.deb": "b342d0382aaf8d64a61c347b6e83f84c1ad50aa4ed3df661ece9010fce3ee72a",
- "fonts-lyx_2.2.2-1_all.deb": "55f9e6aa61acb6d0e25dec9c71c1da21af83eea942c6f64d0646db7b96ff5048",
- "gnome-icon-theme_3.12.0-2_all.deb": "6f918206118943badc16751bc682ce764223652bf5d70b7683b680235a585788",
- "gtk-update-icon-cache_3.22.11-1_amd64.deb": "efb1b77e02a201a7e5bc3474bb2dbedb707de0bd734482a7f8d5df4579c5913a",
- "hicolor-icon-theme_0.15-1_all.deb": "ccad1133347b30513230c896e0072f58910affbbc8947e084d482bef6c5eea00",
- "libatk1.0-0_2.22.0-1_amd64.deb": "dd714b9581b5f6dcb4fe711285117b6a63fa03bd40ad7adad28838883f60236d",
- "libatk1.0-data_2.22.0-1_all.deb": "e48623184d071483e69d1c02dd0163f9a439b9e11c46628ebd230851b2625b1c",
- "libaudit-common_2.6.7-2_all.deb": "42c502f6d37d8d7b77e659d23c58b7e13401b52003782276eb891dfb1bf958c2",
- "libaudit1_2.6.7-2_amd64.deb": "9359b088d9679e6464bddcbc2074a0733eac05cf30857f18ef6c0b65aeaa6591",
- "libblkid1_2.29.2-1+deb9u1_amd64.deb": "796fa1b6cb42e836d84c3a4e1e54fcc31b5a45f98c0d215345d17030d7bb3dcd",
- "libbsd0_0.8.3-1_amd64.deb": "030e441cc6368041536a69adcaed6b4f4a37e0145817fc3eff16f37e3a81ecae",
- "libcairo2_1.14.8-1_amd64.deb": "1f6ebf5f89c05c2e4aae96343f41446e2a847a3686c1dd22db39922df1e60f73",
- "libcap-ng0_0.7.7-3+b1_amd64.deb": "9a428663ad84b2b886b57e22d45bb39e924eb1cfe1e137fd73e2e65cabb3347d",
- "libcroco3_0.6.11-3_amd64.deb": "3a1e1af6a81c04035d67c1928460270448ac5ae30b79f68cd1c2acabb77debf8",
- "libdatrie1_0.2.10-4+b1_amd64.deb": "07349230986b454db6cec4f20fd648235e89f5a7ba258371e5da1dd7ba3992c9",
- "libfontconfig1_2.11.0-6.7+b1_amd64.deb": "8e4ac54fe770ff84c4b596e5e66dacc94efad08940fa354a8c112db06c67d588",
- "libfreetype6_2.6.3-3.2_amd64.deb": "4fd6eb9c7f5d06a6cc2a7c35966aa8c06289f0cb599e0b291be235c63f28db1a",
- "libgdk-pixbuf2.0-0_2.36.5-2+deb9u2_amd64.deb": "0dca760e915f5ec6ef2445135d9daf50d9a7246ec9ef6e1386dceab6a2445028",
- "libgdk-pixbuf2.0-common_2.36.5-2+deb9u2_all.deb": "3895bb256529fbb72d9428681af732deee023b3210700857c2febd63022b0921",
- "libglib2.0-0_2.50.3-2+deb9u1_amd64.deb": "06da7996a1ce90653f2ea6fb09cd44f5a90b27cc5b61db97aa7bf959848fc4c1",
- "libgraphite2-3_1.3.10-1_amd64.deb": "abea07610dab52ea704b01231c179ea02fcf6ecb7606e0775fb3150916c8276b",
- "libgtk2.0-0_2.24.31-2_amd64.deb": "2406ad832e6f677de8107d2b2590cf7e4fa03d90bd644810cab76d54c7ced248",
- "libgtk2.0-common_2.24.31-2_all.deb": "cf9c7c0dd4fc876fe2088c0d23e082e4a8e44c424184bc277577b753f7ca8ced",
- "libharfbuzz0b_1.4.2-1_amd64.deb": "7d66151e6f07835f707a073a08e449e1ce971885af71ad6c474e0e85a2439610",
- "libicu57_57.1-6+deb9u3_amd64.deb": "631db26c25104e61028693b7014ef0ceb1d1f7e22796c8e5bc1110d406bdd060",
- "libjbig0_2.1-3.1+b2_amd64.deb": "9646d69eefce505407bf0437ea12fb7c2d47a3fd4434720ba46b642b6dcfd80f",
- "libjpeg62-turbo_1.5.1-2_amd64.deb": "55b4208bca9e772cd3d6e6a3f6bf3949d170e6da77e53b0ba59abb8f1658bb64",
- "libjs-jquery-ui_1.12.1+dfsg-4_all.deb": "65efba16f621f9b1fafefca0ecafac59df690776924c1137c4352fef18000713",
- "libjs-jquery_3.1.1-2+deb9u1_all.deb": "672c6d54028eb6aae02f85a99a753d5d3bb8c1a573040b981d2b853f1f27c238",
- "libmount1_2.29.2-1+deb9u1_amd64.deb": "37d9c4f275392ac8bf94dbc2aaeade4d95fd7605e1fbb1075ac77663599b6e6b",
- "libpam-modules-bin_1.1.8-3.6_amd64.deb": "2f6279ebec1e48d18ab0f33a321cb99c09f3eaf1a36273ff486060db871d3741",
- "libpam-modules_1.1.8-3.6_amd64.deb": "173bdb5b8dc7ab9bca3d09cca7456000678ccce0d08463ed8298a723eb26f031",
- "libpam0g_1.1.8-3.6_amd64.deb": "20f72da20526de9e94226d6f645772664fbc0e35f1c4a130048720322db3d3d2",
- "libpango-1.0-0_1.40.5-1_amd64.deb": "2973a15ad26aa1051dce9fa4c0ee7e06e4b03e99cf74b6e8697cb7384b346e8d",
- "libpangocairo-1.0-0_1.40.5-1_amd64.deb": "c7bb62778c4e6c8086028e50656c3eff6e238c1467da6f3020c3d843668060d9",
- "libpangoft2-1.0-0_1.40.5-1_amd64.deb": "d668b89229869a68cc411a25feff5016ff76c5ed0ae23855196f2a46f8f88e75",
- "libpixman-1-0_0.34.0-1_amd64.deb": "6c4155c4e217481aa728d39d2ba7d6ca6c88bb1e2b342ca24b2714e61903a3e1",
- "libpng16-16_1.6.28-1+deb9u1_amd64.deb": "1d0b8014cba18f84ce77398da9db9c71e1a8ce53fd8157cd7bf9ccf1d56a42f4",
- "librsvg2-2_2.40.16-1+b1_amd64.deb": "90397a051434d2a6484aeb7e7dd2b6610e54b156a94d615e917d514ac4bf196e",
- "librsvg2-common_2.40.16-1+b1_amd64.deb": "5604d832893fc49b5ebd66255e92fd7e79dbc6d3891475d00a127e389bf2f575",
- "libsemanage-common_2.6-2_all.deb": "f9ccd6a271af92cc2b557d5a3e2725b0d3a44a336704cded5f77e1a7a8503840",
- "libsemanage1_2.6-2_amd64.deb": "17fca1a09c432bcd025b00207785c00244594c7cce1e878a2729d50c82bbfc6a",
- "libsepol1_2.6-2_amd64.deb": "cfb1248894d4817acd435e68ff9b142e170c67829de1dacb6cea667d1b1fdfab",
- "libtcl8.6_8.6.6+dfsg-1+b1_amd64.deb": "1f44458197319632c84a10fbea3f969958106ffc44e6a9a54f9ed71725b8c7a7",
- "libthai-data_0.1.26-1_all.deb": "9e1709138f7d324fbcb6b62d48f6a2b365630e8f81c42db12e04d03d0e71f9f6",
- "libthai0_0.1.26-1_amd64.deb": "e9cfd37dc2b1e067ee70cd17c153235c852b83754cb039e86e554c3376853f3b",
- "libtiff5_4.0.8-2+deb9u4_amd64.deb": "16d5ca9b2c846ed56b141b7cff251abe17183566f55a1f5ef6c9a26ba8ff4bde",
- "libtk8.6_8.6.6-1+b1_amd64.deb": "5ad20e1c4d036dcb90b2e93ce89073a5e65198be0b69a972a33106af2c2b6f6f",
- "libustr-1.0-1_1.0.4-6_amd64.deb": "9cdfba388ccb3d9767325075d0291bc2f92f90e505c98e01a93012c796f68580",
- "libuuid1_2.29.2-1+deb9u1_amd64.deb": "6e16f3033f0147714af101e189dd6b260a986417c6bad8bb1cd9ffe70fa107c8",
- "libx11-6_1.6.4-3+deb9u1_amd64.deb": "bfb881d47a72a6d79a66327bf43e106c13c4dfbd9e87987ff551c3c0cd6bc92e",
- "libx11-data_1.6.4-3+deb9u1_all.deb": "c589d2decc374dff78da717a4716c0d79d9646abb7ccc4a64e1f61534a2ba3b3",
- "libxau6_1.0.8-1_amd64.deb": "b03b2d0d400c2002a2d38300bd6630306abb0ff325c3d4a4447ecceb58335228",
- "libxcb-render0_1.12-1_amd64.deb": "127ebbad060f4ba88c174b980c27cb4458e9782c65349d80034c3feb012c7343",
- "libxcb-shm0_1.12-1_amd64.deb": "3bed0565cfd144bc4f1752985572c3d62b4dd193fb1f1c4cb5f05f82878b459b",
- "libxcb1_1.12-1_amd64.deb": "358ac6d450042d1792e3b2093ed73530774e6bd7600536a2acc327b83b201384",
- "libxcomposite1_0.4.4-2_amd64.deb": "043c878356954f4521c401b160d554809115c472ca384d9f793c1c7542316eb9",
- "libxcursor1_1.1.14-1+deb9u2_amd64.deb": "af4908f3f2bcfe78586823eaf8ed65d838936cb26698c520538717367d836dc6",
- "libxdamage1_1.1.4-2+b3_amd64.deb": "860d474e576074711a58e248feb9fb62086f641cbfa986145cc6c105ef750cc5",
+ "fonts-liberation_1.07.4-9_all.deb": "c936aebbfd0af7851399ae5ab08bb01744f5e3381f7678fb87cc77114f95ef53",
+ "fonts-lyx_2.3.2-1_all.deb": "9b66e257d16c593fc78ebb14f5b72c4a8e00f09984bc2242359a0b16b4efbd87",
+ "libbsd0_0.9.1-2_amd64.deb": "0827321e85d36200759e3ec621fc05154c752534c330ffc5472ad75bbb8eb913",
+ "libfontconfig1_2.13.1-2_amd64.deb": "6766d0bcfc615fb15542efb5235d38237ccaec4c219beb84dbd22d1662ccea8f",
+ "libfreetype6_2.9.1-3+deb10u2_amd64.deb": "93f009440fd1ffcc4b3afdbc413eccc1d8101145a262ca0d0c305fc7029f2417",
+ "libjs-jquery-ui_1.12.1+dfsg-5_all.deb": "42918c7650c60346ac2c5c7596af220bfc858ff2c7d5f63eb02be8902aaa5755",
+ "libjs-jquery_3.3.1~dfsg-3_all.deb": "1276015fa73712e78262995343c5f5313a5c2efe7eff91741c2b9de1fe721fdf",
+ "libpng16-16_1.6.36-6_amd64.deb": "82a252478465521cde9d5af473df01ed79f16e912effc5971892a574e9113500",
+ "libtcl8.6_8.6.9+dfsg-2_amd64.deb": "7b5d095b83e13b9b571cfecde55834b770735e29ff23a52d45e9f4692d4c64a1",
+ "libtk8.6_8.6.9-2_amd64.deb": "a250aba06a5fc9c90622b6e1c3560ff351f945ed7234f61267ec3688370d1770",
+ "libx11-6_1.6.7-1+deb10u1_amd64.deb": "f9d62eaa734828d4282fe4c17613c1a688af4cccbe2819eb691b3aaf615e882f",
+ "libx11-data_1.6.7-1+deb10u1_all.deb": "02f795889390fa0e1f29c6ecdd4a30cd0aae39c0c6b1379410055404b0897c66",
+ "libxau6_1.0.8-1+b2_amd64.deb": "a7857b726c3e0d16cda2fbb9020d42e024a3160d54ef858f58578612276683e8",
+ "libxcb1_1.13.1-2_amd64.deb": "87d9ed9340dc3cb6d7ce024d2e046a659d91356863083715d2c428a32e908833",
"libxdmcp6_1.1.2-3_amd64.deb": "ecb8536f5fb34543b55bb9dc5f5b14c9dbb4150a7bddb3f2287b7cab6e9d25ef",
"libxext6_1.3.3-1+b2_amd64.deb": "724901105792e983bd0e7c2b46960cd925dd6a2b33b5ee999b4e80aaf624b082",
- "libxfixes3_5.0.3-1_amd64.deb": "3b307490c669accd52dc627ad4dc269a03632ca512fbc7b185b572f76608ff4e",
- "libxft2_2.3.2-1+b2_amd64.deb": "25e6bdcfdccdb332b2d415b98170c1fe4841156397dfb04368ac6a9631401670",
- "libxi6_1.7.9-1_amd64.deb": "fe26733adf2025f184bf904caf088a5d3f6aa29a8863b616af9cafaad85b1237",
- "libxinerama1_1.1.3-1+b3_amd64.deb": "56977ee53b18388cc8735dc7a64e709c08c70104344b4f11f255470f08e58c00",
- "libxml2_2.9.4+dfsg1-2.2+deb9u2_amd64.deb": "287fdcf90302893234c4eecc357002a464f7dff43f77adb86dfaee6d32ae1c4d",
- "libxrandr2_1.5.1-1_amd64.deb": "8fdd8ba4a8ad819731d6bbd903b52851a2ec2f9ef4139d880e9be421ea61338c",
+ "libxft2_2.3.2-2_amd64.deb": "cd71384b4d511cba69bcee29af326943c7ca12450765f44c40d246608c779aad",
"libxrender1_0.9.10-1_amd64.deb": "3ea17d07b5aa89012130e2acd92f0fc0ea67314e2f5eab6e33930ef688f48294",
- "libxss1_1.2.2-1_amd64.deb": "0f2fc4eff464b63a4fafed9ab2e499e1804dcee85c5d9a89e53c3ed6a2a06b88",
- "passwd_4.4-4.1_amd64.deb": "81448b1a55cfe82ca3f2791bea75fc4a41cd82eacfee3247c37a04deb9fc4a1a",
+ "libxss1_1.2.3-1_amd64.deb": "85cce16368f08a878fa892fbc54520fc654d00769cde6d300b8b802734a993c0",
+ "node-jquery_2.2.4+dfsg-4_all.deb": "92dcf4950fb9a8ee2f50557af2ca50ca426f5fb89fc6812009ff2775e02e330e",
+ "python-backports.functools-lru-cache_1.5-3_all.deb": "e9c96b612156453ce58a47ae906e0e52f3b2a78a505f12fd860419822e205d0a",
"python-cycler_0.10.0-1_all.deb": "ed00546b732c9361205ca392ef178995ca50e647e2940261c61229968be3de76",
- "python-dateutil_2.5.3-2_all.deb": "3f440c3fea55c5a33b92ce4f30033997294e2e289c58712d2c4d38f169985315",
- "python-functools32_3.2.3.2-3_all.deb": "f0c35fb01be2f3c0c60ba1074ffb0b12de63dd0a7dcb4c7b09a44714d6447e1f",
- "python-matplotlib-data_2.0.0+dfsg1-2_all.deb": "ca349445130c54967e27c9a74e19c4678099183b946432428e627fcad577390b",
- "python-matplotlib_2.0.0+dfsg1-2_amd64.deb": "7ffcef500f7774e403b38e02d88811ff81a4800b54d23515e429d1eecbd76616",
- "python-pyparsing_2.1.10+dfsg1-1_all.deb": "0bc6785731658b613e51cd19c5ab54ac467063c2c99e4c56f2f459084e665f33",
- "python-six_1.10.0-3_all.deb": "547c1f63a8cf07d99a7a79da562a5a938bfaa08b292c1fa479afdebafbb955fa",
- "python-subprocess32_3.2.7-2_amd64.deb": "cc3581f29ad93cfbdeb06088d6e3b1feb16212e592b18d621dd910e2cdd87232",
- "python-tk_2.7.13-1_amd64.deb": "bf2dd505e155ae2de493ae86aa6217169149be5ebd1878ed9fc2ffcea2b91975",
- "python-tz_2016.7-0.3_all.deb": "de87fbcd276903afb2f94c6e76554e50fc339a379c3e3a0c8ef22c0f446cb39b",
+ "python-dateutil_2.7.3-3_all.deb": "eb051f2d84622c46551428b5b4f7045ca3c188a31afc3934511f83f59080bde4",
+ "python-kiwisolver_1.0.1-2+b1_amd64.deb": "fe5e6de843c3840e0786973167d2103e11d39c4ee2dac532baf1efdf1a9f4c3c",
+ "python-matplotlib-data_3.0.2-2_all.deb": "da12bc151e86ec180fc86fc27edf7213e7b0f532e1d10e77a410ac9dcc92ef0c",
+ "python-matplotlib2-data_2.2.3-6_all.deb": "9680fb9e627dfc81c82d1019adc1b53306185bd6996c456c6fc990027980967b",
+ "python-matplotlib_2.2.3-6_amd64.deb": "b48c890f2e19369bb8eb20d5fe19f1fec12101110350128ffb8cb684533382f1",
+ "python-pyparsing_2.2.0+dfsg1-2_all.deb": "4f92606287eaebaf61a63c3e483d96f3a07d88132cf2b7774300e07089ca969a",
+ "python-six_1.12.0-1_all.deb": "e2fab198138d00ca05a2c79aa5490acf87cf22e2496f45721c3b8837d32e3f3b",
+ "python-subprocess32_3.5.3-1_amd64.deb": "d29658e8a52621f44b77bc31623c045ae7f8f159ba57539c62fe02b7f6e7581e",
+ "python-tk_2.7.16-2_amd64.deb": "97ec414f9328e29e70720e0ac4fbc4483299c3b98c01746491bd5740506b131b",
+ "python-tz_2019.1-1_all.deb": "354996dc154d9cbc15f1d7e85b930bd66f6082795cf57b7cbc8e65c54a20575e",
"python3-cycler_0.10.0-1_all.deb": "b49d81a972054f2df915002cd8ba9225fb6bd07a633487dda5813c137f6cfb76",
- "python3-dateutil_2.5.3-2_all.deb": "398d719e19dc7cc581e009c35d583860f427720bf971665a7739c29cd19d3470",
- "python3-matplotlib_2.0.0+dfsg1-2_amd64.deb": "8f5d3509d4f5451468c6de44fc8dfe391c3df4120079adc01ab5f13ff4194f5a",
- "python3-pyparsing_2.1.10+dfsg1-1_all.deb": "ee8d7f04f841248127e81b3d356d37e623ed29da284b28c7d2b8a5b34f0eebba",
- "python3-six_1.10.0-3_all.deb": "597005e64cf70e4be97170a47c33287f70a1c87a2979d47a434c10c9201af3ca",
- "python3-tk_3.5.3-1_amd64.deb": "67489a1c86a9e501dbe2989cd72b5b2c70511fe3829af3567a009271b61fdbb5",
- "python3-tz_2016.7-0.3_all.deb": "5f1c7db456aac5fe9b0ea66d7413c12660c7652ae382c640f71c517a05d39551",
- "shared-mime-info_1.8-1+deb9u1_amd64.deb": "d6591f13ee1200c4f0b5581c2299eb7b8097a6b04742dc333e34a7bb7ba47532",
- "tk8.6-blt2.5_2.5.3+dfsg-3_amd64.deb": "88587a928e2bd692650d98c1483b67f1dee1fed57730077c895e689462af1569",
+ "python3-dateutil_2.7.3-3_all.deb": "f35233cee90828b9b167a8d6db121be6b78607ff280cc2c0503d37fcaa8c4751",
+ "python3-kiwisolver_1.0.1-2+b1_amd64.deb": "ea86280396a3665fc4355da9f2b0f43198fdda31cd4b8e66ed478b305fef3f29",
+ "python3-matplotlib_3.0.2-2_amd64.deb": "d4cd5d0227ac8013141fc9340b7a37a740e584b9517fd73d9a288f7135257f2b",
+ "python3-pyparsing_2.2.0+dfsg1-2_all.deb": "cfc257030609c96acfd5589d751c33cfd50e0870f22b3485fc75240c7c7ad19e",
+ "python3-six_1.12.0-1_all.deb": "ec43cea7798b07e39ad53bb4088f6db17ef1fb01abaebab0641da0ba0e6819e4",
+ "python3-tk_3.7.3-1_amd64.deb": "e869ac21e43dcea7b09fa23848e285122d4b4255a0d738d7eb2bebd6d92fbe2a",
+ "sensible-utils_0.0.12_all.deb": "2043859f8bf39a20d075bf52206549f90dcabd66665bb9d6837273494fc6a598",
+ "tk8.6-blt2.5_2.5.3+dfsg-4_amd64.deb": "752ed35d41bc98a1b79c61b196cfd479a695b6c8d6e6756a18221c4ece501f95",
"ttf-bitstream-vera_1.10-8_all.deb": "328def7f581bf94b3b06d21e641f3e5df9a9b2e84e93b4206bc952fe8e80f38a",
- "tzdata_2019c-0+deb9u1_all.deb": "80c9809dafc62ec741cbf3024130253de6047af31a10f0c86bb17f2d12ad10d5",
- "ucf_3.0036_all.deb": "796a65e765d6045007175531d512c720f4eb04e7f3326b79b848bc6123947225",
+ "tzdata_2021a-0+deb10u1_all.deb": "00da63f221b9afa6bc766742807e398cf183565faba339649bafa3f93375fbcb",
+ "ucf_3.0038+nmu1_all.deb": "d02a82455faab988a52121f37d97c528a4f967ed75e9398e1d8db571398c12f9",
}
def build_matplotlib(version, tkinter_py_version = None, copy_shared_files = True):
diff --git a/debian/matplotlib_init.patch b/debian/matplotlib_init.patch
index 8d67dc6..4cc155a 100644
--- a/debian/matplotlib_init.patch
+++ b/debian/matplotlib_init.patch
@@ -1,13 +1,5 @@
--- a/__init__.py 2018-07-11 15:57:58.086509489 -0700
+++ b/__init__.py 2018-07-11 16:04:15.004795500 -0700
-@@ -102,6 +102,7 @@
- from __future__ import (absolute_import, division, print_function,
- unicode_literals)
-
-+import os
- import six
- import sys
- import distutils.version
@@ -110,6 +111,31 @@
__version__ = str('1.4.2')
__version__numpy__ = str('1.6') # minimum required numpy version
@@ -33,7 +25,7 @@
+ 'tcltk', 'tcl8.6')
+
+# Tell fontconfig where to find matplotlib's sandboxed font files.
-+os.environ["FONTCONFIG_PATH"] = os.path.join(_matplotlib_base, "etc/fonts/")
++os.environ["FONTCONFIG_PATH"] = os.path.join(_matplotlib_base, "etc/fonts")
+os.environ["FONTCONFIG_FILE"] = os.path.join(_matplotlib_base, "etc/fonts/fonts.conf")
+os.environ["FONTCONFIG_SYSROOT"] = _matplotlib_base
+
diff --git a/debian/python.BUILD b/debian/python.BUILD
index c840a19..17543df 100644
--- a/debian/python.BUILD
+++ b/debian/python.BUILD
@@ -1,21 +1,21 @@
package(default_visibility = ["@//debian:__pkg__"])
cc_library(
- name = "python3.5_lib",
+ name = "python3.7_lib",
srcs = [
- "usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0",
+ "usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0",
],
hdrs = glob(["usr/include/**/*.h"]),
includes = [
"usr/include/",
- "usr/include/python3.5m/",
+ "usr/include/python3.7m/",
],
target_compatible_with = ["@platforms//cpu:x86_64"],
visibility = ["//visibility:public"],
)
cc_library(
- name = "python3.5_f2py",
+ name = "python3.7_f2py",
srcs = [
"usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.c",
],
@@ -31,44 +31,7 @@
],
visibility = ["//visibility:public"],
deps = [
- ":python3.5_lib",
- ],
-)
-
-cc_library(
- name = "python2.7_lib",
- srcs = [
- "usr/lib/x86_64-linux-gnu/libpython2.7.so",
- "usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0",
- ],
- hdrs = glob([
- "usr/include/**/*.h",
- ]),
- includes = [
- "usr/include/",
- "usr/include/python2.7/",
- ],
- target_compatible_with = ["@platforms//cpu:x86_64"],
- visibility = ["//visibility:public"],
-)
-
-cc_library(
- name = "python2.7_f2py",
- srcs = [
- "usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.c",
- ],
- hdrs = [
- "usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.h",
- ],
- copts = [
- "-Wno-error",
- ],
- includes = [
- "usr/lib/python2.7/dist-packages/numpy/f2py/src/",
- ],
- visibility = ["//visibility:public"],
- deps = [
- ":python2.7_lib",
+ ":python3.7_lib",
],
)
@@ -97,8 +60,6 @@
srcs = glob([
"usr/lib/python3/dist-packages/numpy",
"usr/lib/python3/dist-packages/scipy",
- "usr/lib/python2.7/dist-packages/numpy",
- "usr/lib/python2.7/dist-packages/scipy",
]),
visibility = ["//visibility:public"],
)
diff --git a/debian/python.bzl b/debian/python.bzl
index 0b6bf7b..7ef0e9d 100644
--- a/debian/python.bzl
+++ b/debian/python.bzl
@@ -1,51 +1,60 @@
files = {
- "dh-python_2.20170125_all.deb": "653083af906f433f5baf4f26ee1d1320e2251a98f20994eacc4797d34bbabaaa",
- "libblas-common_3.7.0-2_amd64.deb": "38b76abd8d7f317c86c2b890e9643db13d4880c6e3745e67c1469b2e465dff5d",
- "libblas3_3.7.0-2_amd64.deb": "a6873de8c875e4f9ce390cd1c2e877e83388a2fabc0a3a22bf9978f86f6bde23",
- "libdb5.3_5.3.28-12+deb9u1_amd64.deb": "ade55bfbd803f3dff0c4c122ac497d734fecac5a9142d8e8b7f86275e7aa91c0",
- "libexpat1-dev_2.2.0-2+deb9u3_amd64.deb": "ba5134fcc4eec7c7c3e65292b9db4d51f237a0f4559616827d239061b6998266",
- "libexpat1_2.2.0-2+deb9u3_amd64.deb": "12857a50ede17ec9957b7cdb04a80dbb603df567501af3aef8ee53932a015cb8",
- "libffi6_3.2.1-6_amd64.deb": "a385cd7ce2cc6c73e271c4692d4c152d96d6c9ad756c3a36bf503f9c2a462de4",
- "libgfortran3_6.3.0-18+deb9u1_amd64.deb": "30b77b353a633725ec7e7491868ceb653afd0e1f4bdb2a0206db493d6d40db38",
- "liblapack3_3.7.0-2_amd64.deb": "5355e377bc6db7eb83cc50d9270a3d9803fae579f4c98f4396f4e74bbd4cb9f3",
- "libmpdec2_2.4.2-1_amd64.deb": "59f5a992082294cf206217512484bcf7e6575d47e277c977bbd3a652aa799fed",
- "libncursesw5_6.0+20161126-1+deb9u2_amd64.deb": "6e232f52ce3d76d0406c1968bdb4277da81475e015ffca404fcb3f858b863f6c",
- "libpython-dev_2.7.13-2_amd64.deb": "483c172e68ec447846c2bfac2dc91981ab5af152024cd7dfb234cb2aac351aee",
- "libpython-stdlib_2.7.13-2_amd64.deb": "ae3936394d8b343a9c020f277e93b29ae848fe695c86aaf16f76aa5af2bb0781",
- "libpython2.7-dev_2.7.13-2+deb9u3_amd64.deb": "c4bf4fe25c6c20166122bce8f68e8d9f010261a8a7bed2fba666bd159650c6c5",
- "libpython2.7-minimal_2.7.13-2+deb9u3_amd64.deb": "101ef840f9bc7b9168494ca54e94da6d30359be6a921b0085a8709e6e9026334",
- "libpython2.7-stdlib_2.7.13-2+deb9u3_amd64.deb": "9d776465833a2640441e14627c1a43118f5d461922731d2260e295cbd14694e5",
- "libpython2.7_2.7.13-2+deb9u3_amd64.deb": "9c0c3f3aef753ba4c81f7635c386e394a6d560af0b07270f0dc83fb4334ec4e0",
- "libpython3-dev_3.5.3-1_amd64.deb": "912b4323027ba90ede5f9db3eb6a5d123c8dab6738d716dd8bec10cd9c8a1690",
- "libpython3-stdlib_3.5.3-1_amd64.deb": "800f1de01b9b3e831cd01c4400fa21f50596d77d8fb5d494a04cdda437181d61",
- "libpython3.5-dev_3.5.3-1+deb9u1_amd64.deb": "683aea6b0b9266dbde902256985667715488e9724a3bcc3741e386b6fdc5d977",
- "libpython3.5-minimal_3.5.3-1+deb9u1_amd64.deb": "db962e6e460a48d1190ff644441b7e0cd622d84fe4d6e664fd309d21e8c77e81",
- "libpython3.5-stdlib_3.5.3-1+deb9u1_amd64.deb": "c2c804139153e6e63df8f1d6dbc18a7d398880360bd978f9589bcb09471bfbb0",
- "libpython3.5_3.5.3-1+deb9u1_amd64.deb": "5184f95e9d5434fb5e1c6d86befb9d9078ce0b71e643b312988928f5846972f4",
- "libquadmath0_6.3.0-18+deb9u1_amd64.deb": "a98030608d1b8eb07d2028ae5b03e1a83f6ae07fda4c765c096f5042992a27f0",
- "libreadline7_7.0-3_amd64.deb": "9d90cd02554b1f0637fc1fbceb3bd69feb576b07a4d25df82970ab04f71f35da",
- "libsqlite3-0_3.16.2-5+deb9u1_amd64.deb": "f448b8dbab36f859cc37627472a5df6aa281ab05fdab386296ee6c9503a5f666",
- "libssl1.1_1.1.0l-1~deb9u1_amd64.deb": "385ce03f4b995e2f756ff92f8fb2c431f51c51866e08695d329223ca6cd3bfaa",
- "libstdc++6_6.3.0-18+deb9u1_amd64.deb": "d05373fbbb0d2c538fa176dfe71d1fa7983c58d35a7a456263ca87e8e0d45030",
- "libtinfo5_6.0+20161126-1+deb9u2_amd64.deb": "1d249a3193568b5ef785ad8993b9ba6d6fdca0eb359204c2355532b82d25e9f5",
- "mime-support_3.60_all.deb": "d0685a72625b474b0a8a85a9465701eab60f16d6f0359ac120ec603a5b37044f",
- "python-decorator_4.0.11-1_all.deb": "d4f72b36358c1db27b7eb20b0727fdee6d5cdbd409f8a343dacc9badb17a3e15",
- "python-dev_2.7.13-2_amd64.deb": "287a1407d97c0d6fca9a877eb1c26171df0067e82babf5bf9137d10365a6a32c",
- "python-minimal_2.7.13-2_amd64.deb": "425f1e6b2e1047a208b2e7c334455b8db2d0c03ea1ca761c4f53893a244c65c9",
- "python-numpy_1.12.1-3_amd64.deb": "76b19ba44b2cce9c79b5150ed0bad5b1247c3f810612b00a397f3a2df7227356",
- "python-scipy_0.18.1-2_amd64.deb": "30f7231c534b121f67587a8426098f091ee572a9071b2c87106fd365619dcd10",
- "python2.7-dev_2.7.13-2+deb9u3_amd64.deb": "88a6d17f20944800e4f6fa4581f47ade05cc6f0fb66eb7d43a50da6ef0364639",
- "python2.7-minimal_2.7.13-2+deb9u3_amd64.deb": "f0d2a33dce0b3723aa8ce8e0f82e6287035dcf88ae3038210718c661b13981b6",
- "python2.7_2.7.13-2+deb9u3_amd64.deb": "ef3ba6e3c867b95c49da1a30c4505ffccc11f9fef39c3448204a46bab72b6d7e",
- "python3-decorator_4.0.11-1_all.deb": "63cca50dc848d1d68c4ac8d4b5a6f8886f592977822019673529f797938b5091",
- "python3-dev_3.5.3-1_amd64.deb": "288b35a42eb3f88fd0065d1522edfb19db8e66cb64fad6c2abae0a0359fe584d",
- "python3-minimal_3.5.3-1_amd64.deb": "4184ede57b6764f4adb38193711d363f83e1797e4e680cabf277304c16dd9fd0",
- "python3-numpy_1.12.1-3_amd64.deb": "acb93bfe28f5928ec50baff5486f8a84ee675cebb3fbcaccb29492b2dcaa3424",
- "python3-scipy_0.18.1-2_amd64.deb": "3fc84587b650884ee197fadeb72a689afa4d42e4de0b4a7296fb9a035abaae1f",
- "python3.5-dev_3.5.3-1+deb9u1_amd64.deb": "2e73e416b39e06bd0356ebddc51751d77872c31acbb46fb25d7630ad99c2fd96",
- "python3.5-minimal_3.5.3-1+deb9u1_amd64.deb": "e1f791c8351b8cce3bd269d5bdf9e7fd5537cbd18ca53922f2ea7c061615b99c",
- "python3.5_3.5.3-1+deb9u1_amd64.deb": "4cd0fbbc04529e055c7b403ff31c327955312c8b5f9227a3634facd1d2717541",
- "python3_3.5.3-1_amd64.deb": "3d8a80b4c0d35d33ae067b3fab230f6f13bc5ae28597e5942a90ba91b85e2a86",
- "python_2.7.13-2_amd64.deb": "4d5dc639f4fb86b924ca7728188982e9062a7f056f64c4f95b48d6a3a0ec042b",
- "readline-common_7.0-3_all.deb": "d03bb49ebe933b06515323f876300d7e71dff572f73a29656dd06e846844e54d",
+ "dh-python_3.20190308_all.deb": "e649e5f2652123695e3579e6ee7f46d42126ea04bd1d0b3f7c10b8f79c39f188",
+ "libblas3_3.8.0-2_amd64.deb": "7161d85be1e755bb605b2a3f65d7c556c5851ed0379b723b3f9d54a5eada5fd5",
+ "libdb5.3_5.3.28+dfsg1-0.5_amd64.deb": "c7f0e9a423840731362ee52d4344c0bcf84318fbc06dad4fefe0e61d9e7062bc",
+ "libexpat1-dev_2.2.6-2+deb10u1_amd64.deb": "0295d8395e706c2c08c7b8ce2244585fef7116b4853898ab680affdbf39693cf",
+ "libexpat1_2.2.6-2+deb10u1_amd64.deb": "d60dee1f402ee0fba6d44df584512ae9ede73e866048e8476de55d9b78fa2da1",
+ "libffi6_3.2.1-9_amd64.deb": "d4d748d897e8e53aa239ead23a18724a1a30085cc6ca41a8c31b3b1e1b3452f4",
+ "libgfortran5_8.3.0-6_amd64.deb": "c76cb39bb3da74c5315e0d9577adc45bd39bf2d21fb7885e724429e5b4ed0ffe",
+ "liblapack3_3.8.0-2_amd64.deb": "29f7df1fb03bc42b38872d37f2d1fc43ac0943b117dd766d8771247363ab4419",
+ "libmpdec2_2.4.2-2_amd64.deb": "9ca85e6e2645a5e660431294320658ec7a2910d9fed90ca4e648c1211a2b844b",
+ "libncursesw6_6.1+20181013-2+deb10u2_amd64.deb": "7dffe9602586300292960f2e3cf4301acfc64a91aed6fa41ea2e719ae75788b3",
+ "libpython-dev_2.7.16-1_amd64.deb": "f52ccc0a85e67a1cc17aff5fcefc82b27f63a47ead938912e3154889c765eb10",
+ "libpython-stdlib_2.7.16-1_amd64.deb": "97cae1e38c030291c6b3ecb0a17ee6c6536d19912bf1d53a55172d85935420ae",
+ "libpython2-dev_2.7.16-1_amd64.deb": "67ef742bbef38acafe6a64a6b46cc6ad32575568a3788ad2b57726c38eac0cd1",
+ "libpython2-stdlib_2.7.16-1_amd64.deb": "82f7754428246edfe11626417a20fef3506eed454cf0e3c2bb9867af5e57e310",
+ "libpython2.7-dev_2.7.16-2+deb10u1_amd64.deb": "8f7146f8f4308999c052e82e2012b82a8cd475593d3195ef91ab5e68236044ef",
+ "libpython2.7-minimal_2.7.16-2+deb10u1_amd64.deb": "8a54dfa6c30ced68dafc159d88adb8c096697a993023bb5e31f2dfd93e386474",
+ "libpython2.7-stdlib_2.7.16-2+deb10u1_amd64.deb": "96c9e7ad71da07f47b7356b416b7f5d6d9e8eda1404b2c8a8ba8edda3799177b",
+ "libpython2.7_2.7.16-2+deb10u1_amd64.deb": "e5dcd5ff5be854e9c7645f1a349701e809078051ef88dd119dc55d07c2e1f7bb",
+ "libpython3-dev_3.7.3-1_amd64.deb": "5fdcd3ce63c9daf001455db58a99efbe6b7be75755729a9370d59deaecf92ac9",
+ "libpython3-stdlib_3.7.3-1_amd64.deb": "4f8883d378e698aa89b7bd4b68ce8e7cca01c961d3df87fafe4c079bb4668f5b",
+ "libpython3.7-dev_3.7.3-2+deb10u2_amd64.deb": "309facf814abf1e9a04ee4830fe2e6941c82f3d7d95714556d78f1ad58e8576c",
+ "libpython3.7-minimal_3.7.3-2+deb10u2_amd64.deb": "783822ae63e3bbdadeabfc8121fc920652248acf9de6be9b1bb42d2a4a0baaf1",
+ "libpython3.7-stdlib_3.7.3-2+deb10u2_amd64.deb": "bfa1a449fcd229456f73b6fb6af24aeb9ad3d6b998b650b7e5615b8101e5d3c0",
+ "libpython3.7_3.7.3-2+deb10u2_amd64.deb": "94c34bee59dfd4f21a249d0a8efb999dbeff5d2b63a172b10b7548c22be93073",
+ "libquadmath0_8.3.0-6_amd64.deb": "766684a231a740b434468e1c7146353fcddff7b8e14644a82672299459c53c34",
+ "libreadline7_7.0-5_amd64.deb": "01e99d68427722e64c603d45f00063c303b02afb53d85c8d1476deca70db64c6",
+ "libsqlite3-0_3.27.2-3+deb10u1_amd64.deb": "19268b796e62f754400c67c69cb759220089cf10aaa5dfd72a84ab1a818caa08",
+ "libssl1.1_1.1.1d-0+deb10u4_amd64.deb": "b02b468f0fad929b5d2b38ae05607c22c4f1ef70adc2688fb02b9d9514d6ac51",
+ "libstdc++6_8.3.0-6_amd64.deb": "5cc70625329655ff9382580971d4616db8aa39af958b7c995ee84598f142a4ee",
+ "libtinfo6_6.1+20181013-2+deb10u2_amd64.deb": "7f39c7a7b02c3373a427aa276830a6e1e0c4cc003371f34e2e50e9992aa70e1a",
+ "libuuid1_2.33.1-0.1_amd64.deb": "90b90bef4593d4f347fb1e74a63c5609daa86d4c5003b14e85f58628d6c118b2",
+ "mime-support_3.62_all.deb": "776efd686af26fa26325450280e3305463b1faef75d82b383bb00da61893d8ca",
+ "python-decorator_4.3.0-1.1_all.deb": "b974cce9a7c6a67e3ff58d0c863e39767b1335540e55042046011f6cb570a768",
+ "python-dev_2.7.16-1_amd64.deb": "47c0a6843c479f4c94b9cfcf25872ca19997ff3c9bf880da1263e99759439c5a",
+ "python-minimal_2.7.16-1_amd64.deb": "25d63ab661c3210f09b269cd8f72f56cd142b370cca5ab48f373fd9816d2f6dc",
+ "python-numpy_1.16.2-1_amd64.deb": "475d88a1df8f5884baa8c2cb20287081ce0043825d09d25bdf84e69531cf7c92",
+ "python-pkg-resources_40.8.0-1_all.deb": "4d6c21f3420a60a689949fc094c2615a3d79d527dd4b25c6886f52323a864061",
+ "python-scipy_1.1.0-7_amd64.deb": "c19fae9daf4a86ae6b4227b13b9dd0c1f99d835706700e815e364028773ac9c3",
+ "python2-dev_2.7.16-1_amd64.deb": "1fc06a982ba81bdde60e74a203d48c2e730e077ae6f8ba46937d365d2ad72a32",
+ "python2-minimal_2.7.16-1_amd64.deb": "538d88329dd3c6d9936fae3051e4f4f0e2a4300f0ba5252afcdd8787871f2caf",
+ "python2.7-dev_2.7.16-2+deb10u1_amd64.deb": "fa4905e28309d85d9ea7e5bb23bf6a8ab2f75bd4af004ec0193e4017f2d32c18",
+ "python2.7-minimal_2.7.16-2+deb10u1_amd64.deb": "639a24fc4130b31ff9406db4fdc248cf6ce311e53136ccdfb10fa1134dd5faf4",
+ "python2.7_2.7.16-2+deb10u1_amd64.deb": "66951c2dbc143d93b6b8757eb749bbd380f340c454301a27bd45ff712b9cffb0",
+ "python2_2.7.16-1_amd64.deb": "d412efde85b1bbdec65f7a4f4f3fc9754eb33b4712218d51eaaa8f6b950613e0",
+ "python3-decorator_4.3.0-1.1_all.deb": "28c6f928e02e500c29b3f79554acc4c3d840160ba2279003f11f8dc397e54faf",
+ "python3-dev_3.7.3-1_amd64.deb": "ae68b1c4f498fbeda0457611d2ccbd7d9bee00ad77b277314134cb262fc128a4",
+ "python3-distutils_3.7.3-1_all.deb": "6918af11061d3141990e78f5ad0530ec0f9a188cac27113d9de2896203efc13f",
+ "python3-lib2to3_3.7.3-1_all.deb": "227e2a2d12922c00dee9e55d8c5b889cfc5e72a54b85c2a509fa1664c2e9e137",
+ "python3-minimal_3.7.3-1_amd64.deb": "9c937923b35ac24f5cb6be81626f00dd6b810fc0889e5b3b08b7ffc9d179ff1b",
+ "python3-numpy_1.16.2-1_amd64.deb": "d5c458459022c3755718acc11e1ddfaf0590dad1c87e4fbb984705f402db2c22",
+ "python3-pkg-resources_40.8.0-1_all.deb": "43783cd63c996b36fcf29bfd8be8c44666148c9129ade88985876d7f9c0bf2f6",
+ "python3-scipy_1.1.0-7_amd64.deb": "684be03532d336181ae93c78ac013eccaba4cc81b3d4beaae3da0acf4dde2d84",
+ "python3.7-dev_3.7.3-2+deb10u2_amd64.deb": "6483aa767345bf0f1f62a9d63b9065a05bab69af9bdc69dd2abb1f6e22dbb79c",
+ "python3.7-minimal_3.7.3-2+deb10u2_amd64.deb": "c3f234591469e8fc3eaac9cb6a20732b10e4392d29cf8c743216c6ea841a2133",
+ "python3.7_3.7.3-2+deb10u2_amd64.deb": "82cc1d080c6921b84ff4177889f6dfc4315dd8c2f9ce31dda5fa083629d48c32",
+ "python3_3.7.3-1_amd64.deb": "eb7862c7ad2cf5b86f3851c7103f72f8fa45b48514ddcf371a8e4ba8f02a79e5",
+ "python_2.7.16-1_amd64.deb": "10b7416134f75b6b49afae4fc6d07c5e061509bedb1ec413747407b234564a0d",
+ "readline-common_7.0-5_all.deb": "153d8a5ddb04044d10f877a8955d944612ec9035f4c73eec99d85a92c3816712",
}
diff --git a/debian/slycot.BUILD b/debian/slycot.BUILD
index 9ef3055..82cc72c 100644
--- a/debian/slycot.BUILD
+++ b/debian/slycot.BUILD
@@ -4,134 +4,6 @@
load("@//tools/build_rules:fortran.bzl", "f2c_library")
load("@//tools/build_rules:select.bzl", "compiler_select")
-# We can't create _wrapper.so in the slycot folder, and can't move it.
-# The best way I found to do this is to modify _wrapper.pyf to instead generate
-# a _fortranwrapper.so library, and then place a _wrapper.py file in slycot/
-# which loads _fortranwrapper from the correct location. This means that I
-# don't need to modify the repository.
-genrule(
- name = "_fortranwrapper_pyf",
- srcs = ["slycot/src/_wrapper.pyf"],
- outs = ["slycot/src/_fortranwrapper.pyf"],
- cmd = "cat $(SRCS) | sed 's/_wrapper/_fortranwrapper/' > $(OUTS)",
- target_compatible_with = ["@platforms//cpu:x86_64"],
-)
-
-# The contents of the file telling f2py how to translate various types. The
-# format doesn't seem to be very well-documented, but this seems to make all the
-# argument types match up.
-_f2py_f2cmap_contents = """{
-"integer": {
- "check m>=0": "long",
- "check n>=0": "long",
- "check p>=0": "long",
- "": "long",
-},
-"logical": {
- "": "long",
-},
-}"""
-
-# Now generate the module wrapper.
-genrule(
- name = "_fortranwrappermodule",
- srcs = [
- "slycot/src/analysis.pyf",
- "slycot/src/synthesis.pyf",
- "slycot/src/_fortranwrapper.pyf",
- "slycot/src/math.pyf",
- "slycot/src/transform.pyf",
- ],
- outs = ["_fortranwrappermodule.c"],
- cmd = "\n".join([
- "cat > .f2py_f2cmap <<END",
- _f2py_f2cmap_contents,
- "END",
- "readlink -f .f2py_f2cmap",
- " ".join([
- "$(location @python_repo//:f2py)",
- "$(location :slycot/src/_fortranwrapper.pyf)",
- "--include-paths external/slycot_repo/slycot/src/",
- "--coutput $(OUTS)",
- ]),
- " ".join([
- "sed",
- "\"s/Generation date.*/Generation date: redacted/\"",
- "-i $(OUTS)",
- ]),
- ]),
- target_compatible_with = ["@platforms//cpu:x86_64"],
- tools = [
- "@python_repo//:f2py",
- ],
-)
-
-# Build it.
-cc_library(
- name = "slycot_c",
- srcs = [
- ":_fortranwrappermodule",
- ],
- copts = [
- "-Wno-error",
- "-Wno-incompatible-pointer-types-discards-qualifiers",
- "-Wno-cast-align",
- "-Wno-unused-parameter",
- "-Wno-missing-field-initializers",
- "-Wno-unused-function",
- "-Wno-unused-but-set-variable",
- ],
- target_compatible_with = ["@platforms//cpu:x86_64"],
- deps = [
- ":slicot",
- "@python_repo//:python2.7_f2py",
- "@python_repo//:python2.7_lib",
- ],
- # Make sure this gets included in the .so.
- alwayslink = True,
-)
-
-# Link it all together. Make sure all the deps get static linked into a single
-# shared object, which will then be loaded by the Python interpreter.
-cc_binary(
- name = "slycot/_fortranwrapper.so",
- linkshared = True,
- linkstatic = True,
- target_compatible_with = ["@platforms//cpu:x86_64"],
- deps = [
- ":slicot",
- ":slycot_c",
- ],
-)
-
-# Generate the _wrapper file which loads _fortranwrapper and pretends.
-genrule(
- name = "_wrapper",
- outs = ["slycot/_wrapper.py"],
- cmd = "echo \"from slycot._fortranwrapper import *\" > $(OUTS)",
- output_to_bindir = True,
-)
-
-# Now present a python library for slycot
-py_library(
- name = "slycot",
- srcs = [
- "slycot/__init__.py",
- "slycot/analysis.py",
- "slycot/examples.py",
- "slycot/math.py",
- "slycot/synthesis.py",
- "slycot/transform.py",
- ":_wrapper",
- ],
- data = [
- ":slycot/_fortranwrapper.so",
- ],
- imports = ["."],
- target_compatible_with = ["@platforms//cpu:x86_64"],
- visibility = ["//visibility:public"],
-)
-
f2c_library(
name = "slicot",
srcs = glob(["slycot/src/*.f"]),