-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for PyCharm remote deployment (#4299)
w
- Loading branch information
1 parent
5200a18
commit 04958ea
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
#!/usr/bin/env python | ||
from setuptools import setup | ||
|
||
setup(use_scm_version=True) | ||
try: | ||
setup(use_scm_version=True) | ||
except LookupError as e: | ||
# .git has been removed, and this is not a package created by sdist | ||
# This is the case e.g. of a remote deployment with PyCharm Professional | ||
if not str(e).startswith("setuptools-scm was unable to detect version"): | ||
raise | ||
setup(version="999") |