Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
1846bc5e
Commit
1846bc5e
authored
6 years ago
by
Levi Baber
Committed by
Todd Gamblin
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
mitofates: more deps and a patch to make it functional (#8686)
* mitofates: more deps and a patch to make it functional
parent
ecff4753
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/spack/repos/builtin/packages/mitofates/DirichletRegulator_fast.patch
+13
-0
13 additions, 0 deletions
.../builtin/packages/mitofates/DirichletRegulator_fast.patch
var/spack/repos/builtin/packages/mitofates/package.py
+26
-0
26 additions, 0 deletions
var/spack/repos/builtin/packages/mitofates/package.py
with
39 additions
and
0 deletions
var/spack/repos/builtin/packages/mitofates/DirichletRegulator_fast.patch
0 → 100644
+
13
−
0
View file @
1846bc5e
--- a/bin/modules/DirichletRegulator_fast.pm 2014-10-23 01:59:55.000000000 -0500
+++ b/bin/modules/DirichletRegulator_fast.pm 2018-07-11 11:19:07.814358134 -0500
@@ -10,9 +10,7 @@
use strict;
use warnings;
use FindBin qw($Bin);
-use Inline (Config =>
- DIRECTORY => "$Bin/modules/_Inline/",
- );
+use Inline;
use Inline 'C';
# Sub-routin: DirichletParser
This diff is collapsed.
Click to expand it.
var/spack/repos/builtin/packages/mitofates/package.py
+
26
−
0
View file @
1846bc5e
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
##############################################################################
from
spack
import
*
from
spack
import
*
import
glob
class
Mitofates
(
Package
):
class
Mitofates
(
Package
):
...
@@ -36,7 +37,32 @@ class Mitofates(Package):
...
@@ -36,7 +37,32 @@ class Mitofates(Package):
depends_on
(
'
libsvm
'
)
depends_on
(
'
libsvm
'
)
depends_on
(
'
perl
'
,
type
=
'
run
'
)
depends_on
(
'
perl
'
,
type
=
'
run
'
)
depends_on
(
'
perl-inline-c
'
,
type
=
'
run
'
)
depends_on
(
'
perl-perl6-slurp
'
,
type
=
'
run
'
)
depends_on
(
'
perl-math-cephes
'
,
type
=
'
run
'
)
# The DirichletRegulator_fast.pm sets the perl Inline directory
# to be inside the deployed source (which won't be writable by
# the end user of site wide deployed software.
# Removing that config entry will cause the inline module to auto
# create a directory in the user's homedir instead
patch
(
'
DirichletRegulator_fast.patch
'
)
def
patch
(
self
):
perlscripts
=
FileFilter
(
'
MitoFates.pl
'
)
perlscripts
.
filter
(
'
#!/usr/bin/perl
'
,
'
#!/usr/bin/env perl
'
)
# other perl module files probably should get this filter too
with
working_dir
(
join_path
(
self
.
stage
.
source_path
,
'
bin/modules
'
)):
perlmodules
=
glob
.
glob
(
'
*.pm
'
)
filter_file
(
'
#!/usr/bin/perl
'
,
'
#!/usr/bin/env perl
'
,
*
perlmodules
)
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
install_tree
(
'
bin
'
,
prefix
.
bin
)
install_tree
(
'
bin
'
,
prefix
.
bin
)
install
(
'
MitoFates.pl
'
,
prefix
)
install
(
'
MitoFates.pl
'
,
prefix
)
chmod
=
which
(
'
chmod
'
)
chmod
(
'
+x
'
,
join_path
(
prefix
,
'
MitoFates.pl
'
))
def
setup_environment
(
self
,
spack_env
,
run_env
):
# We want the main MitoFates.pl script in the path
run_env
.
prepend_path
(
'
PATH
'
,
self
.
prefix
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment