Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow building ESMPy with setuptools/pip #49

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Raise exception if ESMFMKFILE is not set at install
  • Loading branch information
milliams committed Jul 20, 2022
commit 2857272e12374960063eb279ccf8ed12dfd35a1b
3 changes: 3 additions & 0 deletions src/addon/ESMPy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def finalize_options(self):
if isinstance(self.plat_name, type(None)):
self.plat_name = get_platform()

if self.ESMFMKFILE is None:
raise NameError("ESMFMKFILE environment variable is not set")

def run(self):
super().run()
assert os.getcwd() == self.cwd, 'Must be in package root: %s' % self.cwd
Expand Down