Skip to content

Commit

Permalink
Merge pull request #2 from RWUSTC/main
Browse files Browse the repository at this point in the history
Update package.py
  • Loading branch information
jankoboehm authored Apr 21, 2023
2 parents ff04e27 + 1231be4 commit 5bab8d0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/neatibp/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

from spack import *

import os
import subprocess

valuep = os.environ["install_ROOT"]

class Neatibp(Package):

homepage = "https://github.com/yzhphy/NeatIBP/"
Expand All @@ -16,15 +21,16 @@ class Neatibp(Package):

depends_on('git@2.38.1')
depends_on('spasm@1.2')

depends_on('singular@snapshot_22_03')

def install(self, spec, prefix):
with working_dir(prefix):
git = which('git')
git('clone', self.git)
with working_dir("Spack_scripts"):
copy = Executable("./spack_script_cp.sh")
copy()
#valuep = os.environ["SPACK_INSTALL_ROOT"]
p = subprocess.run(['cp', 'spack_sub_script.sh', valuep])


def setup_run_environment(self, env):
Expand Down

0 comments on commit 5bab8d0

Please sign in to comment.