Conversation
Moves backports and overrides to under spack.util.
|
|
||
| cd $topdir | ||
|
|
||
| for mod in $(ls lib/spack/spack/*/__init__.py|awk -F/ '{print $4}') |
There was a problem hiding this comment.
Ick. Parsing ls. How about:
for mod in lib/spack/spack/*/; do
[ -r "$mod/__init__.py" ] && \
python -c "import spack.$mod"
doneThere was a problem hiding this comment.
Oops. Should use basename.
|
Is this PR still active? |
|
Not on my end. |
|
Like do you still want this to be merged? If so it needs to be rebased. What is the use case for being able to import each of these files? |
4 months ago I did. Right now, I don't intend to pursue it.
Maybe you want to subscribe to the mailing list. This topic has come up several times and most recently about a week ago. |
|
The Google Group has a lot of topics. If there are some in particular that this issue addresses, you may want to link to them in your PR. If you want this PR to be merged, it needs to be rebased. If you don't want it to be merged anymore, it should probably be closed. Just trying to clean up and merge old PRs that have been left behind 😃 |
* Bumped py-bluepy==0.14.6 and py-bluepy-configfile==0.1.11
This lets spack.* modules be importable into a bare Python. The
lib/spack/spack/tests/importing.shwill run through all modules to test they can be imported without error. For in-source testing,PYTHONPATHmust addlib/spack.This also moves the backport and override modules to be under
spack.util.Note, this does not address the location variables in
spack/__init__.py.