Skip to content

Commit

Permalink
WIP: Fix white-space and newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
gmloose committed Feb 16, 2024
1 parent 631c38f commit f047900
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion casacore/.aipsrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
measures.directory: ${CASACORE_DATA}
measures.directory: ${CASACORE_DATA}
2 changes: 1 addition & 1 deletion casacore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
if "AIPSPATH" not in os.environ:
root = os.path.dirname(__file__)
os.environ["AIPSPATH"] = root
os.environ["CASACORE_DATA"] = os.path.join(root, "data")
os.environ["CASACORE_DATA"] = os.path.join(root, "data")
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,11 @@ def get_extensions():
flag for flag in opt.split() if flag != '-Wstrict-prototypes'
)


def create_symlink(src_dir, dest_dir):
"""
Create a symbolic link from `src_dir` to `dest_dir`, unless `dest_dir` already exists.
Create a symbolic link from `src_dir` to `dest_dir`, unless `dest_dir`
already exists.
Return `dest_dir` upon success, or an empty string upon failure.
"""
try:
Expand All @@ -271,7 +273,7 @@ def create_symlink(src_dir, dest_dir):
class my_build_ext(build_ext_module.build_ext):
def run(self):
casacoreversion = find_casacore_version()
if casacoreversion is not None and LooseVersion(casacoreversion) < LooseVersion(__mincasacoreversion__):
if casacoreversion is not None and LooseVersion(casacoreversion) < LooseVersion(__mincasacoreversion__):
errorstr = "Your casacore version is too old. Minimum is " + __mincasacoreversion__ + \
", you have " + casacoreversion
if casacoreversion == "2.5.0":
Expand Down

0 comments on commit f047900

Please sign in to comment.