Commit graph

42 commits

Author SHA1 Message Date
Jeremy Fleischman
9a0d1e8f11 Fix build
When doing a `python setup.py build` on my machine, I found that
`build/lib` would not end up with a compiled gresource file until the
second invocation of `python setup.py build`.

Before:

    $ python setup.py build
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/mcg
    copying mcg/connectionpanel.py -> build/lib/mcg
    copying mcg/shortcutsdialog.py -> build/lib/mcg
    copying mcg/serverpanel.py -> build/lib/mcg
    copying mcg/application.py -> build/lib/mcg
    copying mcg/window.py -> build/lib/mcg
    copying mcg/playlistpanel.py -> build/lib/mcg
    copying mcg/utils.py -> build/lib/mcg
    copying mcg/coverpanel.py -> build/lib/mcg
    copying mcg/infodialog.py -> build/lib/mcg
    copying mcg/librarypanel.py -> build/lib/mcg
    copying mcg/client.py -> build/lib/mcg
    copying mcg/zeroconf.py -> build/lib/mcg
    copying mcg/mcg.py -> build/lib/mcg
    copying mcg/__init__.py -> build/lib/mcg
    copying mcg/albumheaderbar.py -> build/lib/mcg
    package init file 'data/__init__.py' not found (or not a regular file)
    compiling gresources
    compiling gschemas

    $ ls build/lib/mcg/data/
    ls: cannot access 'build/lib/mcg/data/': No such file or directory

Note how there is no data directory at all. Now check out what happens
on the second build:

    $ git status
    On branch main
    Your branch is up to date with 'origin/main'.

    Untracked files:
      (use "git add <file>..." to include in what will be committed)
            data/gschemas.compiled
            data/xyz.suruatoel.mcg.gresource

    nothing added to commit but untracked files present (use "git add" to track)

    $ python setup.py build
    running build
    running build_py
    package init file 'data/__init__.py' not found (or not a regular file)
    creating build/lib/mcg/data
    copying data/xyz.suruatoel.mcg.gresource -> build/lib/mcg/data
    compiling gresources
    compiling gschemas

    $ ls build/lib/mcg/data/
    xyz.suruatoel.mcg.gresource

That's because the first build generated the compiled schemas and
resources (you can see evidence of that in `git status`), and then the
second build was able to copy the gresource file over according to the
`package_data` rules. The fix I've introduced here is to just do the
compilations *before* we call `super(...).run(...)`. There might be
better ways of doing this, I'm not very familiar with packaging gtk
python applications.

Things were even worse for the gschemas.compiled file: in addition to
the ordering issue it's not even mentioned in `data_files`, so even if
it does exist, it doesn't have a chance to get copied over when
installed. So I've added it to the `data_files` section. I don't know if
that'll play nicely or not with the existing `--no-compile-schemas`
flag.
2022-08-25 09:43:58 -07:00
ac14c8c7c7 Bump version to 3.0.1 2021-04-18 18:04:34 +02:00
16030a2053 Fix icon path in setup.py 2021-04-18 18:03:55 +02:00
b90ce3299f Bump version to 3.0 2021-04-18 17:14:04 +02:00
32d02f2d9b Update GTK resources and schema to new domain (close #66) 2020-08-09 11:09:53 +02:00
17fe4ee8ca Bump version to 2.1.2 2020-08-03 16:27:31 +02:00
83990c8796 Bump version to 2.1.1 2020-07-26 09:26:57 +02:00
9ad3086ace Bump version to 2.1 2020-03-22 15:43:28 +01:00
21f37dc62c Bump version to 2.0.2 2020-03-15 15:23:08 +01:00
02c859ec22 Bump version to 2.0.1 2019-02-17 00:08:28 +01:00
c22ce2557c Bump version to 2.0 2018-12-22 16:34:22 +01:00
424f9f200b Bump version to 1.3.5 2018-11-10 16:34:06 +01:00
bb4bf89079 Bump version to 1.3.4 2018-09-01 18:52:56 +02:00
647ae01340 Bump versoin to 1.3.3 2018-07-10 23:00:05 +02:00
94a08f64be Bump version to 1.3.2 2018-03-24 11:26:46 +01:00
93b48b70d0 Update website, links and e‑mail address 2018-03-20 22:40:10 +01:00
coderkun
27f963b979 Bump version to 1.3 2017-12-26 10:00:48 +01:00
coderkun
9bba7446e7 Bump version to 1.2.2 2017-10-22 10:42:28 +02:00
coderkun
9f32bed11e Remove “pygobject” requirement from setup.py (fixes #31)
“pygobject” is not a python dependency and can therefore not be used as install
requirement for setup.py. To avoid an error message and let the application
start fine, this needs to be removed from setup.py.
2017-10-22 10:39:28 +02:00
coderkun
681c81bf17 Bump version to 1.2.1 2017-09-10 14:19:06 +02:00
coderkun
3d9ce9672b Bump version to 1.2 2017-09-09 14:14:40 +02:00
coderkun
9576353a70 Bump version to 1.1 2017-08-26 12:02:56 +02:00
coderkun
00b1efbd27 Bump version to 1.0 2017-06-18 13:06:14 +02:00
coderkun
3dc08d97af Bump version to 1.0-rc1 2017-05-06 16:40:25 +02:00
coderkun
680ac1896a Fix distributing and loading of data files 2017-05-06 16:38:14 +02:00
coderkun
883a873bd7 Bump version to 1.0-rc1 2017-04-28 11:04:45 +02:00
coderkun
abec42b9ea Unify name in all files and resources 2017-04-28 11:01:06 +02:00
coderkun
75496a7a1e Fix distribution paths for locale files 2017-04-27 11:34:48 +02:00
coderkun
6691959a85 Add option to not compile gschemas to setup.py 2017-04-27 11:18:42 +02:00
coderkun
fcdd8b1501 Update and translate description text 2017-04-26 12:28:50 +02:00
coderkun
2f84429164 Remove unnecessary resources from distribution 2017-04-25 12:54:25 +02:00
coderkun
5e598250ab Simplify name to “CoverGrid” skipping the “MPD” prefix 2017-04-25 12:53:44 +02:00
coderkun
482ef99a50 Rename and addjust desktop entry file 2017-04-25 12:25:41 +02:00
coderkun
9a65ef5b1d Add desktop icon (implement #20) 2017-04-25 12:25:37 +02:00
coderkun
e0d01f1f18 Compile “gresources” and “gschemas” via setuptools 2017-04-22 15:55:48 +02:00
coderkun
8a34d904fb Add translations support (including EN and DE) (close #6) 2017-04-22 15:03:55 +02:00
coderkun
d1b80dae60 Rename desktop file to remove “GTK” suffix 2017-04-22 11:53:54 +02:00
coderkun
88ddc7ce4a Fix setup.py to work properly 2017-04-22 11:18:57 +02:00
coderkun
134d1a28a7 rework project structure for more logical filenames and code separation 2016-08-01 11:39:24 +02:00
coderkun
c8f51ad801 fix location of data files in setup.py (fixes #16)
https://github.com/coderkun/mcg/issues/16
2016-05-02 13:31:56 +02:00
coderkun
91bd91c263 fix missing comma in setup.py 2016-04-07 09:33:52 +02:00
coderkun
7826bf9bf5 add setup.py for easy distribution 2016-03-12 13:00:06 +01:00