Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Julien Lopez
QueryR
Commits
7bad4221
Commit
7bad4221
authored
6 years ago
by
Gilles Duboscq
Browse files
Options
Downloads
Patches
Plain Diff
Adapt to vm changes
parent
b902c9cd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mx.fastr/mx_fastr_dists.py
+75
-66
75 additions, 66 deletions
mx.fastr/mx_fastr_dists.py
with
75 additions
and
66 deletions
mx.fastr/mx_fastr_dists.py
+
75
−
66
View file @
7bad4221
...
...
@@ -26,6 +26,9 @@ import mx_fastr
import
os
,
string
,
shutil
from
os.path
import
join
,
basename
,
isfile
_fastr_suite
=
mx
.
suite
(
'
fastr
'
)
class
FastRProjectAdapter
(
mx
.
ArchivableProject
):
def
__init__
(
self
,
suite
,
name
,
deps
,
workingSets
,
theLicense
,
**
args
):
mx
.
ArchivableProject
.
__init__
(
self
,
suite
,
name
,
deps
,
workingSets
,
theLicense
)
...
...
@@ -80,7 +83,7 @@ class ReleaseBuildTask(mx.NativeBuildTask):
return
# copy the release directories
output_dir
=
self
.
subject
.
dir
fastr_dir
=
mx_fastr
.
_fastr_suite
.
dir
fastr_dir
=
_fastr_suite
.
dir
for
d
in
[
'
bin
'
,
'
include
'
,
'
library
'
,
'
etc
'
,
'
share
'
,
'
doc
'
]:
target_dir
=
join
(
output_dir
,
d
)
if
os
.
path
.
exists
(
target_dir
):
...
...
@@ -198,87 +201,93 @@ class FastRArchiveParticipant:
def
mx_post_parse_cmd_line
(
opts
):
for
dist
in
mx_fastr
.
_fastr_suite
.
dists
:
for
dist
in
_fastr_suite
.
dists
:
if
isinstance
(
dist
,
mx
.
JARDistribution
):
dist
.
set_archiveparticipant
(
FastRArchiveParticipant
(
dist
))
def
mx_register_dynamic_suite_constituents
(
register_project
,
register_distribution
):
rffi
=
mx
.
get_env
(
'
FASTR_RFFI
'
,
''
)
fastr_release_distribution
=
mx
.
JARDistribution
(
suite
=
mx_fastr
.
_fastr_suite
,
name
=
"
FASTR_RELEASE
"
+
rffi
,
subDir
=
None
,
path
=
"
mxbuild/dists/<os>/<arch>/{rffi}/fastr-release.jar
"
.
format
(
rffi
=
rffi
),
sourcesPath
=
None
,
deps
=
[
"
com.oracle.truffle.r.release
"
],
mainClass
=
None
,
excludedLibs
=
[],
distDependencies
=
[],
javaCompliance
=
None
,
platformDependent
=
True
,
theLicense
=
None
)
fastr_release_distribution
=
mx
.
JARDistribution
(
suite
=
_fastr_suite
,
name
=
"
FASTR_RELEASE
"
+
rffi
,
subDir
=
None
,
path
=
"
mxbuild/dists/<os>/<arch>/{rffi}/fastr-release.jar
"
.
format
(
rffi
=
rffi
),
sourcesPath
=
None
,
deps
=
[
"
com.oracle.truffle.r.release
"
],
mainClass
=
None
,
excludedLibs
=
[],
distDependencies
=
[],
javaCompliance
=
None
,
platformDependent
=
True
,
theLicense
=
None
)
fastr_release_distribution
.
description
=
"
a binary release of FastR
"
fastr_graalvm_release
=
mx
.
NativeTARDistribution
(
suite
=
mx_fastr
.
_fastr_suite
,
name
=
"
FASTR_GRAALVM_RELEASE
"
+
rffi
,
deps
=
[
"
com.oracle.truffle.r.release
"
],
path
=
None
,
excludedLibs
=
[],
platformDependent
=
True
,
theLicense
=
None
,
relpath
=
True
,
output
=
None
)
fastr_graalvm_release
=
mx
.
NativeTARDistribution
(
suite
=
_fastr_suite
,
name
=
"
FASTR_GRAALVM_RELEASE
"
+
rffi
,
deps
=
[
"
com.oracle.truffle.r.release
"
],
path
=
None
,
excludedLibs
=
[],
platformDependent
=
True
,
theLicense
=
None
,
relpath
=
True
,
output
=
None
)
register_distribution
(
fastr_release_distribution
)
register_distribution
(
fastr_graalvm_release
)
if
mx
.
get_env
(
'
FASTR_RELEASE
'
)
==
'
true
'
:
fastr_graalvm_release_support
=
mx
.
LayoutTARDistribution
(
suite
=
mx_fastr
.
_fastr_suite
,
name
=
"
FASTR_GRAALVM_SUPPORT
"
+
rffi
,
deps
=
[],
layout
=
{
"
./
"
:
[
{
"
source_type
"
:
"
extracted-dependency
"
,
"
dependency
"
:
"
FASTR_GRAALVM_RELEASE
"
+
rffi
,
"
path
"
:
"
*
"
,
"
exclude
"
:
[
"
COPYRIGHT
"
,
"
LICENSE
"
,
"
README.md
"
,
"
bin/Rscript
"
,
"
bin/fastr_jars
"
,
"
bin/exec/R
"
,
],
},
{
"
source_type
"
:
"
extracted-dependency
"
,
"
dependency
"
:
"
FASTR_GRAALVM_RELEASE
"
+
rffi
,
"
path
"
:
"
bin/fastr_jars/*
"
,
"
exclude
"
:
[
"
bin/fastr_jars/fastr.jar
"
,
"
bin/fastr_jars/truffle*
"
,
"
bin/fastr_jars/graal-sdk*
"
,
],
},
"
dependency:fastr:GNUR
"
,
],
"
COPYRIGHT_FASTR
"
:
"
extracted-dependency:fastr:FASTR_GRAALVM_RELEASE{rffi}/COPYRIGHT
"
.
format
(
rffi
=
rffi
),
"
LICENSE_FASTR
"
:
"
extracted-dependency:fastr:FASTR_GRAALVM_RELEASE{rffi}/LICENSE
"
.
format
(
rffi
=
rffi
),
"
README_FASTR
"
:
"
extracted-dependency:fastr:FASTR_GRAALVM_RELEASE{rffi}/README.md
"
.
format
(
rffi
=
rffi
),
"
bin/Rscript
"
:
"
file:com.oracle.truffle.r.release/src/Rscript_legacy
"
,
"
bin/exec/R
"
:
"
file:com.oracle.truffle.r.release/src/R_legacy
"
,
"
R-3.4.0.tar.gz
"
:
"
dependency:fastr:GNUR
"
,
"
legacy/
"
:
"
dependency:fastr:FASTR_LEGACY_LAUNCHER
"
,
},
path
=
None
,
platformDependent
=
True
,
theLicense
=
None
)
fastr_graalvm_release_support
=
mx
.
LayoutTARDistribution
(
suite
=
_fastr_suite
,
name
=
"
FASTR_GRAALVM_SUPPORT
"
+
rffi
,
deps
=
[],
layout
=
{
"
./
"
:
[
{
"
source_type
"
:
"
extracted-dependency
"
,
"
dependency
"
:
"
FASTR_GRAALVM_RELEASE
"
+
rffi
,
"
path
"
:
"
*
"
,
"
exclude
"
:
[
"
COPYRIGHT
"
,
"
LICENSE
"
,
"
README.md
"
,
"
bin/Rscript
"
,
"
bin/fastr_jars
"
,
"
bin/exec/R
"
,
],
},
{
"
source_type
"
:
"
extracted-dependency
"
,
"
dependency
"
:
"
FASTR_GRAALVM_RELEASE
"
+
rffi
,
"
path
"
:
"
bin/fastr_jars/*
"
,
"
exclude
"
:
[
"
bin/fastr_jars/fastr.jar
"
,
"
bin/fastr_jars/truffle*
"
,
"
bin/fastr_jars/graal-sdk*
"
,
],
},
"
dependency:fastr:GNUR
"
,
],
"
COPYRIGHT_FASTR
"
:
"
extracted-dependency:fastr:FASTR_GRAALVM_RELEASE{rffi}/COPYRIGHT
"
.
format
(
rffi
=
rffi
),
"
LICENSE_FASTR
"
:
"
extracted-dependency:fastr:FASTR_GRAALVM_RELEASE{rffi}/LICENSE
"
.
format
(
rffi
=
rffi
),
"
README_FASTR
"
:
"
extracted-dependency:fastr:FASTR_GRAALVM_RELEASE{rffi}/README.md
"
.
format
(
rffi
=
rffi
),
"
bin/Rscript
"
:
"
file:com.oracle.truffle.r.release/src/Rscript_legacy
"
,
"
bin/exec/R
"
:
"
file:com.oracle.truffle.r.release/src/R_legacy
"
,
"
R-3.4.0.tar.gz
"
:
"
dependency:fastr:GNUR
"
,
"
legacy/
"
:
"
dependency:fastr:FASTR_LEGACY_LAUNCHER
"
,
},
path
=
None
,
platformDependent
=
True
,
theLicense
=
None
)
fastr_graalvm_release_support
.
description
=
"
FastR support distribution for the GraalVM
"
register_distribution
(
fastr_graalvm_release_support
)
mx_sdk
.
register_component
(
mx_sdk
.
GraalVmLanguage
(
mx_sdk
.
register_
graalvm_
component
(
mx_sdk
.
GraalVmLanguage
(
name
=
'
FastR
'
,
id
=
'
R
'
,
documentation_files
=
[
'
extracted-dependency:fastr:FASTR_GRAALVM_SUPPORT/README_FASTR
'
],
...
...
@@ -293,4 +302,4 @@ mx_sdk.register_component(mx_sdk.GraalVmLanguage(
'
link:<support>/bin/Rscript
'
,
'
link:<support>/bin/exec/R
'
,
],
))
)
,
_fastr_suite
)
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