Using `--with-executables-from` removes the need to activate the installation environment for the datalad tool.
143 lines
6.4 KiB
HTML
143 lines
6.4 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<title>Installation</title>
|
||
<meta name="description" content="Installation and configuration instructions">
|
||
<meta name="author" content="The DataLad Team">
|
||
|
||
<meta charset="utf-8">
|
||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
|
||
<!-- Original reveal JS stylesheets-->
|
||
<link rel="stylesheet" href="../reveal.js/dist/reset.css">
|
||
<link rel="stylesheet" href="../reveal.js/dist/reveal.css">
|
||
<link rel="stylesheet" href="../reveal.js/dist/theme/beige.css">
|
||
<!-- custom styles, e.g., imgcredit -->
|
||
<link rel="stylesheet" href="../custom/css/main.css" id="theme">
|
||
<script src="../custom/js/printpdf.js"></script>
|
||
</head>
|
||
<body>
|
||
|
||
<div class="reveal">
|
||
<div class="slides">
|
||
|
||
<section>
|
||
<section style="text-align: left;">
|
||
<h2>Installation</h2>
|
||
DataLad requires <b><a href="https://git-scm.com" target="_blank">Git</a></b>.
|
||
Check if it is already installed:
|
||
<pre style="margin-left: 0;"><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">git --version</code></pre>
|
||
|
||
If it isn't, install it using your platform's package manager or via an installer (<a href="https://git-scm.com/downloads" target="_blank">https://git-scm.com/downloads</a>).
|
||
</section>
|
||
|
||
<section style="text-align: left;">
|
||
<h2>Installation</h2>
|
||
DataLad requires <b><a href="https://git-annex.branchable.com" target="_blank">git-annex</a></b>.<br>
|
||
Unless you know better, install <b>uv</b> to obtain git-annex:
|
||
<a href=" https://docs.astral.sh/uv/getting-started/installation/#standalone-installer" target="_blank"> https://docs.astral.sh/uv/getting-started/installation/#standalone-installer</a>
|
||
<br>
|
||
<pre style="margin-left: 0;"><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">uv tool install git-annex</code><p id="displayArea"></p></pre>
|
||
|
||
<br>
|
||
<b>DataLad</b> is available on all major operating systems,
|
||
for example via <a href="https://pypi.org/project/datalad/" target="_blank">pip</a>,
|
||
<a href="https://anaconda.org/conda-forge/datalad" target="_blank">conda</a>,
|
||
<a href="https://packages.debian.org/search?keywords=datalad" target="_blank">apt</a>,
|
||
<a href="https://formulae.brew.sh/formula/datalad" target="_blank">brew</a>;
|
||
See <a href="https://handbook.datalad.org/r.html?install" target="_blank">handbook.datalad.org/r.html?install</a>.
|
||
<br>
|
||
Unless you know better, <b>install via DataLad and datalad-next via <a href="https://docs.astral.sh/uv/getting-started/installation/#standalone-installer" target="_blank">uv</a></b>.
|
||
<pre style="margin-left: 0;"><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)"> uv tool install datalad --with-executables-from datalad-next </code><p id="displayArea"></p></pre>
|
||
<br><br>
|
||
</section>
|
||
|
||
<section style="text-align: left;">
|
||
<h2>Installation</h2>
|
||
Verify installation. Should show version for <code>cmd:git</code> and <code>cmd:annex</code>:
|
||
<pre style="margin-left: 0;"><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">datalad wtf -S dependencies</code><p id="displayArea"></p></pre>
|
||
<br>
|
||
</section>
|
||
|
||
<section style="text-align: left;">
|
||
<h2>Identity setup and configuration</h2>
|
||
Check Git identity:
|
||
<pre style="margin-left: 0;"><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">git config --get user.name
|
||
git config --get user.email</code></pre>
|
||
|
||
<div>
|
||
Configure Git identity (<strong>please customize!</strong>):
|
||
<pre style="margin-left: 0;"><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">git config --global user.name "Adina Wagner"
|
||
git config --global user.email "adina.wagner@t-online.de"</code></pre>
|
||
</div>
|
||
|
||
<div>
|
||
Configure DataLad to use latest features from datalad-next extension:
|
||
<pre style="margin-left: 0;"><code data-trim class="language-bash" onmousemove="showHover(event)" onmousedown="clickCopy(event)" onmouseleave="leaveElement(event)">git config --global --add datalad.extensions.load next</code></pre>
|
||
</div>
|
||
</section>
|
||
|
||
<section data-markdown><script type="text/template">
|
||
# Switch to hacker mode!
|
||
<!-- .element: width="900" style="margin-bottom:-20px;margin-top:-20px" -->
|
||
|
||
In 3-2-1
|
||
</script></section>
|
||
|
||
<section data-markdown><script type="text/template">
|
||
|
||
[How things work](./help.html)
|
||
</script></section>
|
||
</section>
|
||
|
||
</div> <!-- /.slides -->
|
||
</div> <!-- /.reveal -->
|
||
|
||
<script src="../reveal.js/dist/reveal.js"></script>
|
||
<script src="../reveal.js/plugin/notes/notes.js"></script>
|
||
<script src="../reveal.js/plugin/markdown/markdown.js"></script>
|
||
<script src="../reveal.js/plugin/highlight/highlight.js"></script>
|
||
<script src="../custom/js/copy-code.js"></script>
|
||
<script>
|
||
// Full list of configuration options available at:
|
||
// https://github.com/hakimel/reveal.js#configuration
|
||
Reveal.initialize({
|
||
// The "normal" size of the presentation, aspect ratio will be preserved
|
||
// when the presentation is scaled to fit different resolutions. Can be
|
||
// specified using percentage units.
|
||
width: 1280,
|
||
height: 960,
|
||
|
||
// Factor of the display size that should remain empty around the content
|
||
margin: 0.1,
|
||
|
||
// Bounds for smallest/largest possible scale to apply to content
|
||
minScale: 0.2,
|
||
maxScale: 1.0,
|
||
|
||
controls: true,
|
||
progress: true,
|
||
history: true,
|
||
center: true,
|
||
|
||
transition: 'slide', // none/fade/slide/convex/concave/zoom
|
||
|
||
// Optional reveal.js plugins
|
||
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
|
||
|
||
});
|
||
</script>
|
||
|
||
<!-- A footer with a "1" and "home" button to get back to the first slide and the index page
|
||
<div id="hidden" style="display:none;">
|
||
<div id="header">
|
||
<div id="footer-left"><a href="#0">1️⃣</a></div>
|
||
<div id="footer-right"><a href="../index.html">🏠</a></div>
|
||
</div>
|
||
</div> -->
|
||
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
|
||
<script src="../custom/js/headerandfooter.js"></script>
|
||
|
||
</body>
|
||
</html>
|