Escaping the circles of installation hell

Raniere Silva

GESIS Leibniz Institute for the Social Sciences

Jannetta Steyn

Newcastle University

Software Carpentry 1.0

In response, John Reynders (then director of the Advanced Computing Laboratory at Los Alamos National Laboratory) invited the [Greg Wilson] and Brent Gorda (now at Intel) to teach a week-long course to LANL staff. This course ran for the first time in July 1998, and was repeated nine times over the next four years.

Wilson G. Software Carpentry: lessons learned [version 2; peer review: 3 approved]. F1000Research 2016, 3:62 (https://doi.org/10.12688/f1000research.3-62.v2)

In July of 1998 …

Python

Version 1.5.1 is the latest release.

Python Package Index (PyPI) has not been created, PyPI was launched in 2003.

Numeric (now called NumPy) was announced in 1995. matplotlib has not been created, matplotlib first release was in 2003.

R

Version 0.62.2 is the latest release.

The Comprehensive R Archive Network (CRAN) was launched the year before (1997).

ggplot (now called ggplot2) has not been created, ggplot first release was in 2006.

Also in July of 1998 …

Microsoft’s Windows 98 was released the month before (June 1998).

Apple’s Mac OS 8 was released the year before (1997).

Concurrent Versions System (CVS) was the most popular version control system.

The first x86 virtualization product was under development by VMware.

Back to the Future, or 2012

Software Carpentry rebooted again in January 2012 with a grant from the Sloan Foundation to the Mozilla Foundation. This time, the model was two-day intensive workshops like those pioneered by The Hacker Within, a grassroots group of grad students helping grad students at the University of Wisconsin - Madison.

Wilson G. Software Carpentry: lessons learned [version 2; peer review: 3 approved]. F1000Research 2016, 3:62 (https://doi.org/10.12688/f1000research.3-62.v2)

In 2012 …

R

Version 2.15.0 is the latest release.

RStudio IDE was released the year before (2011).

dplyr (and tidyverse) has not been created, dplyr first release was in 2014. Users had access to R’s native apply and the plyr package by Hadley Wickham.

Also in 2012 …

Microsoft’s Windows 8 was released this year (2012).

Apple’s OS X 10.8 (Mountain Lion) was released this year (2012).

Git and Mercurial were the most popular version control system. Apache Subversion (SVN) had lost a lot of version control system market share.

GitHub replaced SourceForge as the hosting platform for open source software source code.

PEP 427 – The Wheel Binary Package Format 1.0 was created this year (2012).

Docker was under development.

Source Distribution

From Python Packaging User Guide’s Glossary

A distribution format […] that provides metadata and the essential source files needed for installing by a tool […]

This is a popular option for many package manager, for example, pip and CRAN.

Built Distribution

From Python Packaging User Guide’s Glossary

A Distribution format containing files and metadata that only need to be moved to the correct location on the target system, to be installed.

This is a popular option for many package manager, for example, dpkg, rpm, conda and Posit Package Manager.

Unix-like shell in Windows

The options were

Limitations

  • “Host” file system mapping
  • Copy and paste

Software Carpentry Windows Installer

From https://github.com/swcarpentry/windows-installer

  • Installs GNU Make and makes it accessible from msysGit
  • Installs nano and makes it accessible from msysGit
  • Installs SQLite and makes it accessible from msysGit
  • Creates a ~/nano.rc with links to syntax highlighting configs
  • Provides standard nosetests behavior for msysGit
  • Adds R’s bin directory to the path (if we can find it)

In 2017 …

Docker has stablished itself as the default containerization software.

Kubernetes has stablished itself as the open standard for container orchestration system.

In 2024 …

Learners have access to local JupyterHub, mybinder.org, Google Colab(oratory), GitHub Codespaces, GitLab Workspaces.

Also, learners have access to ChatGPT, Microsoft Copilot, Google’s Gemini, and many others artificial intelligence based tools.

Python

Version 3.13.0 is the latest release.

R

Version 4.4.1 is the latest release.

Unix-like shell in Windows

Windows Subsystem for Linux 2 (WSL2) is a fabulous solution! Give it a try!

  1. Easy installation using Windows’ Microsoft Store.

  2. Native support to many GNU/Linux distributions, including Ubuntu, Debian, Fedora, SUSE and many others. Search for “linux” on Windows’ Microsoft Store.

  3. Bi-directional file system mapping.

    From Windows, use Windows Explorer to access the “Linux” top level entry or \\wsl.localhost.

    From GNU/Linux, use /mnt/c/.

  4. It is the recommended way to use Docker and Kubernetes.

New Challanges

  1. Teach learners on new software development platforms.
  2. Access to NVIDIA CUDA and AMD ROCm compatible hardware during The Carpentries workshops.
  3. Access to message passing interface (MPI) environments during The Carpentries workshops.

Acknowledgment

Discussion

  1. What are other installation challenges that you encounter before when running a The Carpentries workshop?
  2. How to leverage new software development platforms?
  3. How to provide access to NVIDIA CUDA and AMD ROCm compatible hardware during The Carpentries workshops?
  4. How to provide access to message passing interface (MPI) environments during The Carpentries workshops?