From c732487f6db7b20e77961a9c6d81d9fe2d1d2454 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 26 Feb 2015 23:40:18 +0100 Subject: Only remove src/default_config.cfg after build if we are in a develop copy In order to not pollute src/; without this change a script doing on a sdist-built archive: ./setup.py build ./setup.py install would fail because src/default_config.cfg was removed after setup(), and data/default_config.cfg does not exist --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0334c1e9..5ea97cdc 100755 --- a/setup.py +++ b/setup.py @@ -106,6 +106,8 @@ setup(name="poezio", 'Screen autoaway plugin': 'pyinotify==0.9.4'}) # Remove the link afterwards -if exists(join(current_dir, 'src', 'default_config.cfg')): +if (exists(join(current_dir, 'src', 'default_config.cfg')) and + exists(join(current_dir, 'data', 'default_config.cfg'))): + unlink(join(current_dir, 'src', 'default_config.cfg')) -- cgit v1.2.3