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

testing #28510

Open
wants to merge 4 commits into
base: next
Choose a base branch
from
Open

testing #28510

Show file tree
Hide file tree
Changes from all commits
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
11 changes: 9 additions & 2 deletions conda/pyhit/build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
#!/bin/bash
set -eu

git clean -xfd
git submodule update --init moose
cp -R pyhit $SP_DIR/
cd src

printf '\n\n\nDEBUG BUILDING\n'
printf 'FLAGS?\n%s\n\n' "$LDFLAGS"

make bindings

printf '\n\n\nWHAT ARE THE LINKS\n'
ldd hit.so
printf '\n\n\n'

cp hit.so $SP_DIR/pyhit/
cat > $SP_DIR/pyhit-$PKG_VERSION.egg-info <<FAKE_EGG
Metadata-Version: 2.1
Expand Down
10 changes: 6 additions & 4 deletions conda/pyhit/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
moose_wasp:
moose-wasp 2024.05.08
moose-wasp 2024.08.30

moose_python:
- python 3.10
- python 3.9
- python 3.8
- python 3.11
# for speedy troubleshooting only do one for now
#- python 3.10
#- python 3.9
#- python 3.8

# Pesky packages that break internal CI
# Note: Modifying/Updating this will require changes to conda/mpich!
Expand Down
22 changes: 15 additions & 7 deletions conda/pyhit/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,43 @@
{% set version = "2024.05.08" %}
{% set version = "2024.08.30" %}

package:
name: moose-pyhit
version: {{ version }}

source:
git_url: https://github.com/milljm/moose-pyhit.git
- path: ../pyhit
- path: ../../python/moosetree
folder: pyhit/moosetree
- path: ../../python/mooseutils/message.py
folder: pyhit/mooseutils/message.py
- path: ../../python/mooseutils/mooseutils.py
folder: pyhit/mooseutils/mooseutils.py
- path: ../../framework/contrib/hit
folder: src
- path: ../../python/pyhit/pyhit.py
folder: pyhit
- patches:
- pyhit.patch

build:
number: 0
string: build_0
skip: true # [win]
pin_depends: record

requirements:
build:
- {{ compiler('cxx') }}
- {{ moose_python }}
- {{ moose_wasp }}
- make
- cython
- setuptools

host:
- {{ compiler('cxx') }}
- {{ moose_python }}
- make
- cython

run:
- {{ moose_wasp }}
- setuptools
- python

test:
Expand Down
17 changes: 17 additions & 0 deletions conda/pyhit/pyhit.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/pyhit/pyhit.py b/pyhit/pyhit.py
index c484b9e6a6..4fc6c1ff95 100644
--- a/pyhit/pyhit.py
+++ b/pyhit/pyhit.py
@@ -10,9 +10,9 @@
"""Wrapper for hit parser."""
import os
import subprocess
-import moosetree
-import hit
-from mooseutils import message
+from . import moosetree
+from . import hit
+from .mooseutils import message

class Node(moosetree.Node):
"""
10 changes: 10 additions & 0 deletions conda/pyhit/pyhit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html

from .pyhit import Node, load, write, parse
10 changes: 10 additions & 0 deletions conda/pyhit/pyhit/mooseutils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html

from .mooseutils import colorText
2 changes: 1 addition & 1 deletion conda/wasp/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# As well as any directions pertaining to modifying those files.
# ALSO: Follow the directions in scripts/tests/versioner_hashes.yaml
{% set version = "2024.05.08" %}
{% set version = "2024.08.30" %}

package:
name: moose-wasp
Expand Down