[d-feet/fix-bugs-in-mr-7: 3/5] flatpak: install pycodestyle during build



commit 767f82d0fa6ed9e61c3935415a246f907be13a81
Author: Will Thompson <will willthompson co uk>
Date:   Wed Sep 19 20:06:43 2018 +0100

    flatpak: install pycodestyle during build
    
    This will allow us to run `make check` during CI flatpak builds, which
    manually build the d-feet module rather than building it with
    flatpak-builder. We still use --disable-tests in the real manifest
    because the tests require an X (or Wayland) server.
    
    Specifying "cleanup": ["*"] causes all files installed by the
    pycodestyle module to be removed at the end of the build process.

 org.gnome.dfeet.json | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
---
diff --git a/org.gnome.dfeet.json b/org.gnome.dfeet.json
index 3ae2608..1c654d8 100644
--- a/org.gnome.dfeet.json
+++ b/org.gnome.dfeet.json
@@ -58,6 +58,26 @@
                 "/lib/python*/site-packages/gi/*.la"
             ]
         },
+        {
+            "name": "pycodestyle",
+            "buildsystem": "simple",
+            "build-commands": [
+                "python3 setup.py install --prefix=/app"
+            ],
+            "ensure-writable" : [
+                "/lib/python*/site-packages/easy-install.pth"
+            ],
+            "sources": [
+                {
+                    "type": "archive",
+                    "url": 
"https://files.pythonhosted.org/packages/28/ad/cae9654d7fd64eb3d2ab2c44c9bf8dc5bd4fb759625beab99532239aa6e8/pycodestyle-2.4.0.tar.gz";,
+                    "sha256": "cbfca99bd594a10f674d0cd97a3d802a1fdef635d4361e1a2658de47ed261e3a"
+                }
+            ],
+            "cleanup": [
+                "*"
+            ]
+        },
         {
             "name": "d-feet",
             "config-opts": [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]