Verified Commit c732487f authored by mathieui's avatar mathieui

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:

    ./ build
    ./ install

would fail because src/default_config.cfg was removed after setup(), and
data/default_config.cfg does not exist
parent 190987bc
......@@ -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'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment