[Darshan-commits] [Git][darshan/darshan][master] 2 commits: revert previous modifications to setup.py

Shane Snyder xgitlab at cels.anl.gov
Fri May 7 17:12:59 CDT 2021



Shane Snyder pushed to branch master at darshan / darshan


Commits:
21362b6a by Shane Snyder at 2021-05-07T15:54:46-05:00
revert previous modifications to setup.py

- - - - -
feff6be8 by Shane Snyder at 2021-05-07T15:55:50-05:00
make targets for pydarshan autoperf modules

- - - - -


2 changed files:

- darshan-util/pydarshan/Makefile
- darshan-util/pydarshan/setup.py


Changes:

=====================================
darshan-util/pydarshan/Makefile
=====================================
@@ -1,7 +1,7 @@
 .PHONY: clean clean-test clean-pyc clean-build docs help
 
 
-clean: clean-build clean-docs clean-pyc clean-test  # remove all build, test, coverage and Python artifacts
+clean: clean-build clean-docs clean-pyc clean-test clean-modules  # remove all build, test, coverage and Python artifacts
 
 clean-build:  # remove build artifacts
 	rm -rf build/
@@ -37,6 +37,10 @@ clean-devenv:
 	rm -rf devenv/libdarshanutil
 	rm -rf devenv
 
+clean-modules:
+	for file in `find ../../modules/ -name "*backend.py"` ; do \
+		rm -rf darshan/backend/`basename $$file | cut -d '-' -f 1`.py ; \
+	done
 
 devenv:
 	./devel/build-libdarshanutil.sh
@@ -66,6 +70,12 @@ docs: clean-docs # generate Sphinx HTML documentation, including API docs
 docs-show:
 	xdg-open docs/build/html/index.html
 
+# add AutoPef Python packages...
+add-modules:
+	for file in `find ../../modules/ -name "*-backend.py"` ; do \
+		cp $$file darshan/backend/`basename $$file | cut -d '-' -f 1`.py ; \
+	done
+
 wheels:
 	./devel/build-all.sh
 


=====================================
darshan-util/pydarshan/setup.py
=====================================
@@ -44,7 +44,7 @@ for root, dirs, files in os.walk("../../modules"):
         if f.endswith("-backend.py"):
             fname = f.replace("-backend", "")
             try:
-                os.link("../../" + os.path.join(root, f), f"darshan/backend/{fname}")
+                os.symlink("../../" + os.path.join(root, f), f"darshan/backend/{fname}")
             except:
                 pass
             print("Adding {0} to backends.".format(os.path.join(root, f)))



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/compare/d54f6c5955da6ce067dddfd00e71c43e72bd9218...feff6be89f26e5fb40bba576213612b9804f1d8a

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/compare/d54f6c5955da6ce067dddfd00e71c43e72bd9218...feff6be89f26e5fb40bba576213612b9804f1d8a
You're receiving this email because of your account on xgitlab.cels.anl.gov.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20210507/6ee3016c/attachment-0001.html>


More information about the Darshan-commits mailing list