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
ea425a10
Commit
ea425a10
authored
8 years ago
by
Adam J. Stewart
Browse files
Options
Downloads
Patches
Plain Diff
Flake8 and new tk version
parent
583232ea
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/tcl/package.py
+6
-4
6 additions, 4 deletions
var/spack/repos/builtin/packages/tcl/package.py
var/spack/repos/builtin/packages/tk/package.py
+8
-5
8 additions, 5 deletions
var/spack/repos/builtin/packages/tk/package.py
with
14 additions
and
9 deletions
var/spack/repos/builtin/packages/tcl/package.py
+
6
−
4
View file @
ea425a10
...
...
@@ -24,6 +24,7 @@
##############################################################################
from
spack
import
*
class
Tcl
(
Package
):
"""
Tcl (Tool Command Language) is a very powerful but easy to
learn dynamic programming language, suitable for a very wide
...
...
@@ -34,9 +35,6 @@ class Tcl(Package):
extensible.
"""
homepage
=
"
http://www.tcl.tk
"
def
url_for_version
(
self
,
version
):
return
'
http://prdownloads.sourceforge.net/tcl/tcl%s-src.tar.gz
'
%
version
version
(
'
8.6.5
'
,
'
0e6426a4ca9401825fbc6ecf3d89a326
'
)
version
(
'
8.6.4
'
,
'
d7cbb91f1ded1919370a30edd1534304
'
)
version
(
'
8.6.3
'
,
'
db382feca91754b7f93da16dc4cdad1f
'
)
...
...
@@ -44,6 +42,10 @@ def url_for_version(self, version):
depends_on
(
'
zlib
'
)
def
url_for_version
(
self
,
version
):
base_url
=
'
http://prdownloads.sourceforge.net/tcl
'
return
'
{0}/tcl{1}-src.tar.gz
'
.
format
(
base_url
,
version
)
def
setup_environment
(
self
,
spack_env
,
env
):
# When using Tkinter from within spack provided python+tk, python
# will not be able to find Tcl/Tk unless TCL_LIBRARY is set.
...
...
@@ -52,6 +54,6 @@ def setup_environment(self, spack_env, env):
def
install
(
self
,
spec
,
prefix
):
with
working_dir
(
'
unix
'
):
configure
(
"
--prefix=
%s
"
%
prefix
)
configure
(
"
--prefix=
{0}
"
.
format
(
prefix
)
)
make
()
make
(
"
install
"
)
This diff is collapsed.
Click to expand it.
var/spack/repos/builtin/packages/tk/package.py
+
8
−
5
View file @
ea425a10
...
...
@@ -24,6 +24,7 @@
##############################################################################
from
spack
import
*
class
Tk
(
Package
):
"""
Tk is a graphical user interface toolkit that takes developing
desktop applications to a higher level than conventional
...
...
@@ -33,13 +34,15 @@ class Tk(Package):
and more.
"""
homepage
=
"
http://www.tcl.tk
"
def
url_for_version
(
self
,
version
):
return
"
http://prdownloads.sourceforge.net/tcl/tk%s-src.tar.gz
"
%
version
version
(
'
8.6.5
'
,
'
11dbbd425c3e0201f20d6a51482ce6c4
'
)
version
(
'
8.6.3
'
,
'
85ca4dbf4dcc19777fd456f6ee5d0221
'
)
depends_on
(
"
tcl
"
)
def
url_for_version
(
self
,
version
):
base_url
=
"
http://prdownloads.sourceforge.net/tcl
"
return
"
{0}/tk{1}-src.tar.gz
"
.
format
(
base_url
,
version
)
def
setup_environment
(
self
,
spack_env
,
env
):
# When using Tkinter from within spack provided python+tk, python
# will not be able to find Tcl/Tk unless TK_LIBRARY is set.
...
...
@@ -48,7 +51,7 @@ def setup_environment(self, spack_env, env):
def
install
(
self
,
spec
,
prefix
):
with
working_dir
(
'
unix
'
):
configure
(
"
--prefix=
%s
"
%
prefix
,
"
--with-tcl=
%s
"
%
spec
[
'
tcl
'
].
prefix
.
lib
)
configure
(
"
--prefix=
{0}
"
.
format
(
prefix
)
,
"
--with-tcl=
{0}
"
.
format
(
spec
[
'
tcl
'
].
prefix
.
lib
)
)
make
()
make
(
"
install
"
)
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