Skip to content

Commit

Permalink
Support for PyCharm remote deployment (#4299)
Browse files Browse the repository at this point in the history
w
  • Loading branch information
crusaderky authored Aug 3, 2020
1 parent 5200a18 commit 04958ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ Documentation

Internal Changes
~~~~~~~~~~~~~~~~
- Fix ``pip install .`` when no ``.git`` directory exists; namely when the xarray source
directory has been rsync'ed by PyCharm Professional for a remote deployment over SSH.
By `Guido Imperiale <https://github.com/crusaderky>`_
- Only load resource files when running inside a Jupyter Notebook
(:issue:`4294`) By `Guido Imperiale <https://github.com/crusaderky>`_

Expand Down
9 changes: 8 additions & 1 deletion setup.py
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")

0 comments on commit 04958ea

Please sign in to comment.