File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ order_by_type = True
2626use_parentheses = True
2727indent = 4
2828include_trailing_comma = True
29- skip = bin/meld
29+ skip = bin/meld, setup_win32.py
Original file line number Diff line number Diff line change 22
33import glob
44import os .path
5+ import pathlib
56import platform
67import sys
78import sysconfig
89
910from cx_Freeze import Executable , setup
1011
11- import meld .build_helpers
12- import meld .conf
13-
1412
1513def get_non_python_libs ():
1614 """Returns list of tuples containing extra dependencies required to run
@@ -125,6 +123,18 @@ def get_non_python_libs():
125123 "shortcutDir" : "ProgramMenuFolder" ,
126124 })
127125
126+ # Copy conf.py in place if necessary
127+ base_path = pathlib .Path (__file__ ).parent
128+ conf_path = base_path / 'meld' / 'conf.py'
129+
130+ if not conf_path .exists ():
131+ import shutil
132+ shutil .copyfile (conf_path .with_suffix ('.py.in' ), conf_path )
133+
134+ import meld .build_helpers # noqa: E402
135+ import meld .conf # noqa: E402
136+
137+
128138setup (
129139 name = "Meld" ,
130140 version = meld .conf .__version__ ,
You can’t perform that action at this time.
0 commit comments