-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add logic to find packaged casacore data
- Loading branch information
Showing
3 changed files
with
14 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
include *.rst *.md | ||
graft data | ||
graft casacore/data | ||
graft doc | ||
graft src | ||
graft tests |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
measures.directory: ${CASACORE_DATA} |
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,2 +1,13 @@ | ||
__version__ = "3.5.2" | ||
__version__ = "3.6.0a1" | ||
__mincasacoreversion__ = "3.1.1" | ||
|
||
import os | ||
|
||
# If environment variable `AIPSPATH` is not set, then set it to the directory | ||
# containing the `.aipsrc` file that is distributed with this package. | ||
# This `.aipsrc` file uses the environment `CASACORE_DATA`, which should point | ||
# to the directory containing the casacore data files. | ||
if "AIPSPATH" not in os.environ: | ||
root = os.path.dirname(__file__) | ||
os.environ["AIPSPATH"] = root | ||
os.environ["CASACORE_DATA"] = os.path.join(root, "data") |