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
b5e6f35b
Commit
b5e6f35b
authored
8 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
add README to release dist
parent
e864864a
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
+7
-7
7 additions, 7 deletions
mx.fastr/mx_fastr_dists.py
with
7 additions
and
7 deletions
mx.fastr/mx_fastr_dists.py
+
7
−
7
View file @
b5e6f35b
...
...
@@ -161,6 +161,7 @@ class FastRReleaseProject(FastRProjectAdapter):
self
.
_get_files
(
rdir
,
results
)
results
.
append
(
join
(
self
.
dir
,
'
LICENSE
'
))
results
.
append
(
join
(
self
.
dir
,
'
COPYRIGHT
'
))
results
.
append
(
join
(
self
.
dir
,
'
README.md
'
))
return
results
def
getBuildTask
(
self
,
args
):
...
...
@@ -198,10 +199,9 @@ class ReleaseBuildTask(mx.NativeBuildTask):
with
open
(
join
(
copyrights_dir
,
copyright_file
))
as
infile
:
data
=
infile
.
read
()
outfile
.
write
(
data
)
# license
with
open
(
join
(
output_dir
,
'
LICENSE
'
),
'
w
'
)
as
outfile
:
with
open
(
join
(
fastr_dir
,
'
LICENSE
'
))
as
infile
:
outfile
.
write
(
infile
.
read
())
# license/README
shutil
.
copy
(
join
(
fastr_dir
,
'
LICENSE
'
),
output_dir
)
shutil
.
copy
(
join
(
fastr_dir
,
'
README.md
'
),
output_dir
)
# canonicalize R_HOME_DIR in bin/R
bin_dir
=
join
(
output_dir
,
'
bin
'
)
...
...
@@ -217,7 +217,7 @@ class ReleaseBuildTask(mx.NativeBuildTask):
line
=
'
R_HOME_DIR=
"
$(unset CDPATH && cd ${R_HOME_DIR} && pwd)
"
\n
'
f
.
write
(
line
)
# jar files for the launchers
jars_dir
=
join
(
bin_dir
,
'
j
jars
'
)
jars_dir
=
join
(
bin_dir
,
'
fastr_
jars
'
)
if
not
os
.
path
.
exists
(
jars_dir
):
os
.
mkdir
(
jars_dir
)
fastr_classfiles
=
dict
()
...
...
@@ -250,7 +250,7 @@ class ReleaseBuildTask(mx.NativeBuildTask):
classpath
=
[]
for
_
,
_
,
jars
in
os
.
walk
(
jars_dir
):
for
jar
in
jars
:
classpath
.
append
(
join
(
"
$R_HOME/bin/
j
jars
"
,
jar
))
classpath
.
append
(
join
(
"
$R_HOME/bin/
fastr_
jars
"
,
jar
))
classpath_string
=
"
:
"
.
join
(
classpath
)
# replace the mx exec scripts with native Java launchers, setting the classpath from above
...
...
@@ -270,7 +270,7 @@ class FastRArchiveParticipant:
# The release project states dependencies on the java projects in order
# to ensure they are built first. Therefore, the JarDistribution code
# will include all their class files at the top-level of the jar by default.
# Since we have already encapsulated the class files in '
j
jars/fastr.jar' we
# Since we have already encapsulated the class files in '
fastr_
jars/fastr.jar' we
# suppress their inclusion here by resetting the deps filed. A bit of a hack.
if
self
.
dist
.
name
==
"
FASTR_RELEASE
"
:
assert
isinstance
(
self
.
dist
.
deps
[
0
],
FastRReleaseProject
)
...
...
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