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
3c0048dd
Commit
3c0048dd
authored
10 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Patches
Plain Diff
py-sip installs properly into a prefix
parent
c0c08799
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/spack/packages/py-sip/package.py
+6
-1
6 additions, 1 deletion
var/spack/packages/py-sip/package.py
var/spack/packages/python/package.py
+8
-2
8 additions, 2 deletions
var/spack/packages/python/package.py
with
14 additions
and
3 deletions
var/spack/packages/py-sip/package.py
+
6
−
1
View file @
3c0048dd
from
spack
import
*
import
os
class
PySip
(
Package
):
"""
SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries.
"""
...
...
@@ -10,6 +11,10 @@ class PySip(Package):
extends
(
'
python
'
)
def
install
(
self
,
spec
,
prefix
):
python
(
'
configure.py
'
)
python
(
'
configure.py
'
,
'
--destdir=%s
'
%
site_packages_dir
,
'
--bindir=%s
'
%
spec
.
prefix
.
bin
,
'
--incdir=%s
'
%
python_include_dir
,
'
--sipdir=%s
'
%
os
.
path
.
join
(
spec
.
prefix
.
share
,
'
sip
'
))
make
()
make
(
'
install
'
)
This diff is collapsed.
Click to expand it.
var/spack/packages/python/package.py
+
8
−
2
View file @
3c0048dd
...
...
@@ -42,6 +42,11 @@ def python_lib_dir(self):
return
os
.
path
.
join
(
'
lib
'
,
'
python%d.%d
'
%
self
.
version
[:
2
])
@property
def
python_include_dir
(
self
):
return
os
.
path
.
join
(
'
include
'
,
'
python%d.%d
'
%
self
.
version
[:
2
])
@property
def
site_packages_dir
(
self
):
return
os
.
path
.
join
(
self
.
python_lib_dir
,
'
site-packages
'
)
...
...
@@ -58,8 +63,9 @@ def setup_dependent_environment(self, module, spec, ext_spec):
module
.
python
=
Executable
(
join_path
(
spec
.
prefix
.
bin
,
'
python
'
))
# Add variables for lib/pythonX.Y and lib/pythonX.Y/site-packages dirs.
module
.
python_lib_dir
=
os
.
path
.
join
(
ext_spec
.
prefix
,
self
.
python_lib_dir
)
module
.
site_packages_dir
=
os
.
path
.
join
(
ext_spec
.
prefix
,
self
.
site_packages_dir
)
module
.
python_lib_dir
=
os
.
path
.
join
(
ext_spec
.
prefix
,
self
.
python_lib_dir
)
module
.
python_include_dir
=
os
.
path
.
join
(
ext_spec
.
prefix
,
self
.
python_include_dir
)
module
.
site_packages_dir
=
os
.
path
.
join
(
ext_spec
.
prefix
,
self
.
site_packages_dir
)
# Make the site packages directory if it does not exist already.
mkdirp
(
module
.
site_packages_dir
)
...
...
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