Skip to content

Commit

Permalink
Merge pull request #505 from bitcraze/ataffanel/issue504
Browse files Browse the repository at this point in the history
Fix install from source
  • Loading branch information
ataffanel authored Apr 15, 2021
2 parents e1a2e2f + a1d8745 commit 53327ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ recursive-include src/cfclient/configs *.json
recursive-include src/cfclient/ui *.ui
recursive-include src/cfclient/resources *
include src/cfclient/version.json
include pyproject.toml
include gitversion.py
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def relative(lst, base=''):
return list(map(lambda x: base + os.path.basename(x), lst))


VERSION = get_version()
try:
VERSION = get_version()
except Exception:
VERSION = None

if not VERSION and not os.path.isfile('src/cfclient/version.json'):
sys.stderr.write("Git is required to install from source.\n" +
Expand Down

0 comments on commit 53327ae

Please sign in to comment.