{"action":"created","comment":{"url":"https://api.github.com/repos/LLNL/spack/pulls/comments/87702869","pull_request_review_id":8306399,"id":87702869,"diff_hunk":"@@ -0,0 +1,463 @@\n+.. _package_tutorial:\n+\n+=========================\n+Package Creation Tutorial\n+=========================\n+\n+This tutorial will walk you through the steps behind building a simple\n+package installation script.  We'll focus building an mpileaks package,\n+which is a MPI debugging tool.  By creating a package file we're\n+essentially giving Spack a recipe for how to build a particular piece of\n+software.  We're describing some of the software's dependencies, where to\n+find the package, what commands and options are used to build the package\n+from source, and more.  Once we've specified a package's recipe, we can\n+ask Spack to build that package in many different ways.\n+\n+This tutorial assumes you have a basic familiarity with some of the Spack\n+commands, and that you have a working version of Spack installed.  If\n+not, we suggest looking at Spack's *Getting Started* guide.  This\n+tutorial also assumes you have at least a beginner's-level familiarity\n+with Python.\n+\n+Also note that this document is a tutorial.  It can help you get started\n+with packaging, but is not intended to be complete.  See Spack's\n+:ref:`packaging-guide` for more complete documentation on this topic.\n+\n+---------------\n+Getting Started\n+---------------\n+\n+A few things before we get started:\n+\n+- We'll refer to the Spack installation location via the environment\n+  variable ``SPACK_ROOT``.  You should point ``SPACK_ROOT`` at wherever\n+  you have Spack installed.\n+- Add ``$SPACK_ROOT/bin`` to your ``PATH`` before you start.\n+- Make sure your ``EDITOR`` environment variable is set to some text\n+  editor you like.\n+- We'll be writting Python code as part of this tutorial.  You can find\n+  successive versions of the Python code in\n+  ``$SPACK_ROOT/lib/spack/docs/packaging_tutorial``.\n+\n+-------------------------\n+Creating the Package File\n+-------------------------\n+\n+Spack comes with a handy command to create a new package: ``spack create``\n+\n+This command is given the location of a package's source code, downloads\n+the code, and sets up some basic packaging infrastructure for you.  The\n+mpileaks source code can be found on github, and here's what happens when\n+we run ``spack create`` on it:\n+\n+.. code-block:: console\n+\n+  % spack create -f https://github.com/hpc/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz\n+  ==> This looks like a URL for mpileaks version 1.0\n+  ==> Creating template for package mpileaks\n+  ==> Downloading...\n+  ==> Fetching https://github.com/hpc/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz\n+  ###################################################################################### 100.0%\n+\n+And Spack should spawn a text editor with this file:\n+\n+.. literalinclude:: packaging_tutorial/0.package.py\n+   :start-after: # flake8: noqa\n+   :language: python\n+\n+Spack has created this file in\n+``$SPACK_ROOT/var/spack/repos/builtin/packages/mpileaks/package.py``.  Take a\n+moment to look over the file.  There's a few placeholders that Spack has\n+created, which we'll fill in as part of this tutorial:\n+\n+- We'll document some information about this package in the comments.\n+- We'll fill in the dependency list for this package.\n+- We'll fill in some of the configuration arguments needed to build this\n+  package.\n+\n+For the moment, exit your editor and let's see what happens when we try\n+to build this package:\n+\n+.. code-block:: console\n+\n+  % spack install mpileaks\n+  ==> Installing mpileaks\n+  ==> Using cached archive: /usr/workspace/wsa/legendre/spack/var/spack/cache/mpileaks/mpileaks-1.0.tar.gz\n+  ==> Staging archive: /usr/workspace/wsa/legendre/spack/var/spack/stage/mpileaks-1.0-hufwhwpq5benv3sslie6ryflk5s6nm35/mpileaks-1.0.tar.gz\n+  ==> Created stage in /usr/workspace/wsa/legendre/spack/var/spack/stage/mpileaks-1.0-hufwhwpq5benv3sslie6ryflk5s6nm35\n+  ==> Ran patch() for mpileaks\n+  ==> Building mpileaks [AutotoolsPackage]\n+  ==> Executing phase : 'autoreconf'\n+  ==> Executing phase : 'configure'\n+  ==> Error: ProcessError: Command exited with status 1:\n+      './configure' '--prefix=/usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/mpileaks-1.0-hufwhwpq5benv3sslie6ryflk5s6nm35'\n+  /usr/workspace/wsa/legendre/spack/lib/spack/spack/build_systems/autotools.py:150, in configure:\n+       145      def configure(self, spec, prefix):\n+       146          \"\"\"Runs configure with the arguments specified in `configure_args`\n+       147          and an appropriately set prefix\n+       148          \"\"\"\n+       149          options = ['--prefix={0}'.format(prefix)] + self.configure_args()\n+    >> 150          inspect.getmodule(self).configure(*options)\n+\n+  See build log for details:\n+    /tmp/legendre/spack-stage/spack-stage-8HVzqu/mpileaks-1.0/spack-build.out\n+\n+This obviously didn't work; we need to fill in the package-specific\n+information.  Specifically, Spack didn't try to build any of mpileaks'\n+dependencies, nor did it use the proper configure arguments.  Let's start\n+fixing things\n+\n+---------------------\n+Package Documentation\n+---------------------\n+\n+We can bring the ``package.py`` file back into our ``EDITOR`` with the\n+``spack edit`` command:\n+\n+.. code-block:: console\n+\n+  % spack edit mpileaks\n+\n+Let's remove some of the ``TODO`` comments, and add links to the mpileaks\n+homepage and document what mpileaks does.  I'm also going to cut out the\n+Copyright clause at this point to keep this tutorial document shorter,\n+but you shouldn't do that normally.  The results of these changes can be\n+found in ``$SPACK_ROOT/lib/spack/docs/packaging_tutorial/1.package.py``\n+and are below.  Make these changes to your ``package.py``:\n+\n+.. literalinclude:: packaging_tutorial/1.package.py\n+   :start-after: # flake8: noqa\n+   :language: python\n+\n+We've filled in the comment that describes what this package does and\n+added a link to the web site.  That won't help us build yet, but it will\n+allow Spack to provide some documentation on this package to other users:\n+\n+.. code-block:: console\n+\n+  % spack info mpileaks\n+  AutotoolsPackage:    mpileaks\n+  Homepage:            https://github.com/hpc/mpileaks\n+\n+  Safe versions:\n+      1.0    https://github.com/hpc/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz\n+\n+  Variants:\n+      None\n+\n+  Installation Phases:\n+      autoreconf    configure    build    install\n+\n+  Build Dependencies:\n+      None\n+\n+  Link Dependencies:\n+      None\n+\n+  Run Dependencies:\n+      None\n+\n+  Virtual Packages:\n+      None\n+\n+  Description:\n+      Tool to detect and report MPI objects like MPI_Requests and\n+      MPI_Datatypes\n+\n+As we fill in more information about this package the spack info command\n+will become more informative.  Now let's start making this package build.\n+\n+------------\n+Dependencies\n+------------\n+\n+The mpileaks packages depends on three other package: ``MPI``,\n+``adept-utils``, and ``callpath``.  Let's add those via the\n+``depends_on`` command in our ``package.py`` (this version is in\n+``$SPACK_ROOT/lib/spack/docs/packaging_tutorial/2.package.py``):\n+\n+.. literalinclude:: packaging_tutorial/2.package.py\n+   :start-after: # flake8: noqa\n+   :language: python\n+\n+Now when we go to build mpileaks, Spack will fetch and build these\n+dependencies before building mpileaks.  Note that the mpi dependency is a\n+different kind of beast than the adept-utils and callpath dependencies;\n+there is no mpi package available in Spack.  Instead mpi is a virtual\n+dependency.  Spack may satisfy that dependency by installing packages\n+such as ``openmpi`` or ``mvapich``.  See the :ref:`packaging-guide` for more\n+information on virtual dependencies.\n+\n+Now when we try to install this package a lot more happens:\n+\n+.. code-block:: console\n+\n+  % spack install mpileaks\n+  ==> Installing mpileaks\n+  ==> openmpi is already installed in /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/openmpi-2.0.1-5ee5j34c2y4kb5c3joygrgahidqnwhnz\n+  ==> callpath is already installed in /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/callpath-1.0.2-zm4pf3gasgxeibyu2y262suktvaazube\n+  ==> adept-utils is already installed in /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/adept-utils-1.0.1-7p7ezxwtajdglj6cmojy2vybjct4j4jz\n+  ==> Using cached archive: /usr/workspace/wsa/legendre/spack/var/spack/cache/mpileaks/mpileaks-1.0.tar.gz\n+  ==> Already staged mpileaks-1.0-eum4hmnlt6ovalwjnciaygfb3beja4gk in /usr/workspace/wsa/legendre/spack/var/spack/stage/mpileaks-1.0-eum4hmnlt6ovalwjnciaygfb3beja4gk\n+  ==> Already patched mpileaks\n+  ==> Building mpileaks [AutotoolsPackage]\n+  ==> Executing phase : 'autoreconf'\n+  ==> Executing phase : 'configure'\n+  ==> Error: ProcessError: Command exited with status 1:\n+      './configure' '--prefix=/usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/mpileaks-1.0-eum4hmnlt6ovalwjnciaygfb3beja4gk'\n+  /usr/workspace/wsa/legendre/spack/lib/spack/spack/build_systems/autotools.py:150, in configure:\n+       145      def configure(self, spec, prefix):\n+       146          \"\"\"Runs configure with the arguments specified in `configure_args`\n+       147          and an appropriately set prefix\n+       148          \"\"\"\n+       149          options = ['--prefix={0}'.format(prefix)] + self.configure_args()\n+    >> 150          inspect.getmodule(self).configure(*options)\n+\n+  See build log for details:\n+    /tmp/legendre/spack-stage/spack-stage-7V5yyk/mpileaks-1.0/spack-build.out\n+\n+Note that this command may take a while to run and produce more output if\n+you don't have an MPI already installed or configured in Spack.\n+\n+Now Spack has identified and made sure all of our dependencies have been\n+built.  It found the ``openmpi`` package that will satisfy our ``mpi``\n+dependency, and the callpath and ``adept-utils`` package to satisfy our\n+concrete dependencies.\n+\n+------------------------\n+Debugging Package Builds\n+------------------------\n+\n+Our ``mpileaks`` package is still not building.  It may be obvious to\n+many of you that we're still missing the configure options.  But let's\n+pretend we're not all intelligent developers and use this opportunity\n+spend some time debugging.  We a few options that can tell us about\n+what's going wrong:\n+\n+As per the error message, Spack has given us a ``spack-build.out`` debug log:\n+\n+.. code-block:: console\n+\n+  ==> './configure' '--prefix=/usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/mpileaks-1.0-eum4hmnlt6ovalwjnciaygfb3beja4gk'\n+  checking metadata... no\n+  checking installation directory variables... yes\n+  checking for a BSD-compatible install... /usr/bin/install -c\n+  checking whether build environment is sane... yes\n+  checking for a thread-safe mkdir -p... /usr/bin/mkdir -p\n+  checking for gawk... gawk\n+  checking whether make sets $(MAKE)... yes\n+  checking for gcc... /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc\n+  checking for C compiler default output file name... a.out\n+  checking whether the C compiler works... yes\n+  checking whether we are cross compiling... no\n+  checking for suffix of executables...\n+  checking for suffix of object files... o\n+  checking whether we are using the GNU C compiler... yes\n+  checking whether /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc accepts -g... yes\n+  checking for /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc option to accept ISO C89... none needed\n+  checking for style of include used by make... GNU\n+  checking dependency style of /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc... gcc3\n+  checking whether /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc and cc understand -c and -o together... yes\n+  checking whether we are using the GNU C++ compiler... yes\n+  checking whether /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/g++ accepts -g... yes\n+  checking dependency style of /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/g++... gcc3\n+  checking for /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/openmpi-2.0.1-5ee5j34c2y4kb5c3joygrgahidqnwhnz/bin/mpicc... /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/openmpi-2.0.1-5ee5j34c2y4kb5c3joygrgahidqnwhnz/bin/mpicc\n+  Checking whether /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/openmpi-2.0.1-5ee5j34c2y4kb5c3joygrgahidqnwhnz/bin/mpicc responds to '-showme:compile'... yes\n+  configure: error: unable to locate ``adept-utils`` installation\n+\n+This gives us the output from the build, and it's fairly obvious that\n+mpileaks isn't finding it's ``adept-utils`` package.  Spack has\n+automatically added the include and library directories of\n+``adept-utils`` to the compiler's search path, but some packages like\n+mpileaks can sometimes be picky and still want things spelled out on\n+their command line.  But let's continue to pretend we're not brilliant\n+developers, and explore some other debugging paths:\n+\n+We can also enter the build area and try to manually run the build:\n+\n+.. code-block:: console\n+\n+  % spack env mpileaks tcsh\n+  % spack cd mpileaks\n+\n+The ``spack env`` command spawned a new shell that contains the same\n+environment that Spack used to build the mpileaks package (you can\n+substitute tcsh for your favorite shell).  The ``spack cd`` command\n+changed our working dirctory to the last attempted build for mpileaks.\n+From here we can manually re-run the build:\n+\n+.. code-block:: console\n+\n+  % ./configure\n+  checking metadata... no\n+  checking installation directory variables... yes\n+  checking for a BSD-compatible install... /usr/bin/install -c\n+  checking whether build environment is sane... yes\n+  checking for a thread-safe mkdir -p... /usr/bin/mkdir -p\n+  checking for gawk... gawk\n+  checking whether make sets $(MAKE)... yes\n+  checking for gcc... /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc\n+  checking for C compiler default output file name... a.out\n+  checking whether the C compiler works... yes\n+  checking whether we are cross compiling... no\n+  checking for suffix of executables...\n+  checking for suffix of object files... o\n+  checking whether we are using the GNU C compiler... yes\n+  checking whether /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc accepts -g... yes\n+  checking for /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc option to accept ISO C89... none needed\n+  checking for style of include used by make... GNU\n+  checking dependency style of /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc... gcc3\n+  checking whether /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/gcc and cc understand -c and -o together... yes\n+  checking whether we are using the GNU C++ compiler... yes\n+  checking whether /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/g++ accepts -g... yes\n+  checking dependency style of /usr/workspace/wsa/legendre/spack/lib/spack/env/gcc/g++... gcc3\n+  checking for /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/openmpi-2.0.1-5ee5j34c2y4kb5c3joygrgahidqnwhnz/bin/mpicc... /usr/workspace/wsa  /legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/openmpi-2.0.1-5ee5j34c2y4kb5c3joygrgahidqnwhnz/bin/mpicc\n+  Checking whether /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/openmpi-2.0.1-5ee5j34c2y4kb5c3joygrgahidqnwhnz/bin/mpicc responds to '-showme:compile'... yes\n+  configure: error: unable to locate adept-utils installation\n+\n+We're seeing the same error, but now we're in a shell where we can run\n+the command ourselves and debug as needed.  We could, for example, run\n+``./configure --help`` to see what options we can use to specify\n+dependencies.\n+\n+We can use the ``exit`` command to leave the shell spawned by ``spack\n+env``.\n+\n+------------------------------\n+Specifying Configure Arguments\n+------------------------------\n+\n+Let's add the configure arguments to the mpileaks' ``package.py``.  This\n+version can be found in\n+``$SPACK_ROOT/lib/spack/docs/packaging_tutorial/3.package.py``:\n+\n+.. literalinclude:: packaging_tutorial/3.package.py\n+   :start-after: # flake8: noqa\n+   :language: python\n+\n+This is all we need for working mpileaks!  If we install now we'll see:\n+\n+.. code-block:: console\n+\n+  % spack install mpileaks\n+  spack install mpileaks\n+  ==> Installing mpileaks\n+  ==> openmpi is already installed in /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/openmpi-2.0.1-5ee5j34c2y4kb5c3joygrgahidqnwhnz\n+  ==> callpath is already installed in /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/callpath-1.0.2-zm4pf3gasgxeibyu2y262suktvaazube\n+  ==> adept-utils is already installed in /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/adept-utils-1.0.1-7p7ezxwtajdglj6cmojy2vybjct4j4jz\n+  ==> Using cached archive: /usr/workspace/wsa/legendre/spack/var/spack/cache/mpileaks/mpileaks-1.0.tar.gz\n+  ==> Already staged mpileaks-1.0-eum4hmnlt6ovalwjnciaygfb3beja4gk in /usr/workspace/wsa/legendre/spack/var/spack/stage/mpileaks-1.0-eum4hmnlt6ovalwjnciaygfb3beja4gk\n+  ==> Already patched mpileaks\n+  ==> Building mpileaks [AutotoolsPackage]\n+  ==> Executing phase : 'autoreconf'\n+  ==> Executing phase : 'configure'\n+  ==> Executing phase : 'build'\n+  ==> Executing phase : 'install'\n+  ==> Successfully installed mpileaks\n+    Fetch: 0.00s.  Build: 14.08s.  Total: 14.08s.\n+  [+] /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/mpileaks-1.0-eum4hmnlt6ovalwjnciaygfb3beja4gk\n+\n+We took a few shortcuts for this package that are worth highlighting.\n+Spack automatically detected that mpileaks was an autotools-based package\n+when we ran spack create.  If this had been a CMake-based package we\n+would have been filling in a ``cmake_args`` function instead of\n+``configure_args``.  If spack hadn't been able to detect the build\n+system, we'd be filling in a generic install method that would manually\n+be calling build commands, such as is found in the ``zlib`` package:\n+\n+.. code-block:: python\n+\n+    def install(self, spec, prefix):\n+        configure('--prefix={0}'.format(prefix))\n+        make()\n+        make('install')\n+\n+--------\n+Variants\n+--------\n+\n+We have a successful mpileaks build, but let's take some time to improve\n+it.  ``mpileaks`` has a build-time option to truncate parts of the stack\n+that it walks.  Let's add a variant to allow users to set this when they\n+build in Spack.\n+\n+To do this, we'll add a variant to our package, as per the following (see\n+``$SPACK_ROOT/lib/spack/docs/packaging_tutorial/4.package.py``):\n+\n+.. literalinclude:: packaging_tutorial/4.package.py\n+   :start-after: # flake8: noqa\n+   :language: python\n+\n+We've added the variant ``stackstart``, and given it a default value of\n+``0``.  If we install now we can see the stackstart variant added to the\n+configure line (output truncated for length):\n+\n+.. code-block:: console\n+\n+  % spack install --verbose mpileaks stackstart=4\n+  ==> Installing mpileaks\n+  ==> openmpi is already installed in /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/openmpi-2.0.1-5ee5j34c2y4kb5c3joygrgahidqnwhnz\n+  ==> callpath is already installed in /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/callpath-1.0.2-zm4pf3gasgxeibyu2y262suktvaazube\n+  ==> adept-utils is already installed in /usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/adept-utils-1.0.1-7p7ezxwtajdglj6cmojy2vybjct4j4jz\n+  ==> Using cached archive: /usr/workspace/wsa/legendre/spack/var/spack/cache/mpileaks/mpileaks-1.0.tar.gz\n+  ==> Staging archive: /usr/workspace/wsa/legendre/spack/var/spack/stage/mpileaks-1.0-otqo2opkhan5ksujt6tpmdftydrieig7/mpileaks-1.0.tar.gz\n+  ==> Created stage in /usr/workspace/wsa/legendre/spack/var/spack/stage/mpileaks-1.0-otqo2opkhan5ksujt6tpmdftydrieig7\n+  ==> Ran patch() for mpileaks\n+  ==> Building mpileaks [AutotoolsPackage]\n+  ==> Executing phase : 'autoreconf'\n+  ==> Executing phase : 'configure'\n+  ==> './configure' '--prefix=/usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/mpileaks-1.0-otqo2opkhan5ksujt6tpmdftydrieig7' '--with-adept-utils=/usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/adept-utils-1.0.1-7p7ezxwtajdglj6cmojy2vybjct4j4jz' '--with-callpath=/usr/workspace/wsa/legendre/spack/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/callpath-1.0.2-zm4pf3gasgxeibyu2y262suktvaazube' '--with-stack-start-c=4' '--with-stack-start-fortran=4'\n+\n+---------------\n+The Spec Object\n+---------------\n+\n+This tutorial has glossed over a few important features, which weren't\n+too relevant for mpleaks but may be useful for other packages.  There","path":"lib/spack/docs/package_tutorial.rst","position":416,"original_position":416,"commit_id":"230b3bdb07457a92aeb86fa3949805716b798cd2","original_commit_id":"230b3bdb07457a92aeb86fa3949805716b798cd2","user":{"login":"adamjstewart","id":12021217,"avatar_url":"https://avatars.githubusercontent.com/u/12021217?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjstewart","html_url":"https://github.com/adamjstewart","followers_url":"https://api.github.com/users/adamjstewart/followers","following_url":"https://api.github.com/users/adamjstewart/following{/other_user}","gists_url":"https://api.github.com/users/adamjstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjstewart/subscriptions","organizations_url":"https://api.github.com/users/adamjstewart/orgs","repos_url":"https://api.github.com/users/adamjstewart/repos","events_url":"https://api.github.com/users/adamjstewart/events{/privacy}","received_events_url":"https://api.github.com/users/adamjstewart/received_events","type":"User","site_admin":false},"body":"mpleaks -> mpileaks","created_at":"2016-11-13T00:10:55Z","updated_at":"2016-11-13T00:10:55Z","html_url":"https://github.com/LLNL/spack/pull/2315#discussion_r87702869","pull_request_url":"https://api.github.com/repos/LLNL/spack/pulls/2315","_links":{"self":{"href":"https://api.github.com/repos/LLNL/spack/pulls/comments/87702869"},"html":{"href":"https://github.com/LLNL/spack/pull/2315#discussion_r87702869"},"pull_request":{"href":"https://api.github.com/repos/LLNL/spack/pulls/2315"}}},"pull_request":{"url":"https://api.github.com/repos/LLNL/spack/pulls/2315","id":93428029,"html_url":"https://github.com/LLNL/spack/pull/2315","diff_url":"https://github.com/LLNL/spack/pull/2315.diff","patch_url":"https://github.com/LLNL/spack/pull/2315.patch","issue_url":"https://api.github.com/repos/LLNL/spack/issues/2315","number":2315,"state":"closed","locked":false,"title":"Add packaging tutorial to docs","user":{"login":"mplegendre","id":4440062,"avatar_url":"https://avatars.githubusercontent.com/u/4440062?v=3","gravatar_id":"","url":"https://api.github.com/users/mplegendre","html_url":"https://github.com/mplegendre","followers_url":"https://api.github.com/users/mplegendre/followers","following_url":"https://api.github.com/users/mplegendre/following{/other_user}","gists_url":"https://api.github.com/users/mplegendre/gists{/gist_id}","starred_url":"https://api.github.com/users/mplegendre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mplegendre/subscriptions","organizations_url":"https://api.github.com/users/mplegendre/orgs","repos_url":"https://api.github.com/users/mplegendre/repos","events_url":"https://api.github.com/users/mplegendre/events{/privacy}","received_events_url":"https://api.github.com/users/mplegendre/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-12T04:40:58Z","updated_at":"2016-11-13T00:15:19Z","closed_at":"2016-11-12T15:45:51Z","merged_at":"2016-11-12T15:45:51Z","merge_commit_sha":"216d269f1d85b9e3aba43009ceda11035ee57430","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/LLNL/spack/pulls/2315/commits","review_comments_url":"https://api.github.com/repos/LLNL/spack/pulls/2315/comments","review_comment_url":"https://api.github.com/repos/LLNL/spack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LLNL/spack/issues/2315/comments","statuses_url":"https://api.github.com/repos/LLNL/spack/statuses/230b3bdb07457a92aeb86fa3949805716b798cd2","head":{"label":"mplegendre:packaging_tutorial","ref":"packaging_tutorial","sha":"230b3bdb07457a92aeb86fa3949805716b798cd2","user":{"login":"mplegendre","id":4440062,"avatar_url":"https://avatars.githubusercontent.com/u/4440062?v=3","gravatar_id":"","url":"https://api.github.com/users/mplegendre","html_url":"https://github.com/mplegendre","followers_url":"https://api.github.com/users/mplegendre/followers","following_url":"https://api.github.com/users/mplegendre/following{/other_user}","gists_url":"https://api.github.com/users/mplegendre/gists{/gist_id}","starred_url":"https://api.github.com/users/mplegendre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mplegendre/subscriptions","organizations_url":"https://api.github.com/users/mplegendre/orgs","repos_url":"https://api.github.com/users/mplegendre/repos","events_url":"https://api.github.com/users/mplegendre/events{/privacy}","received_events_url":"https://api.github.com/users/mplegendre/received_events","type":"User","site_admin":false},"repo":{"id":32597016,"name":"spack","full_name":"mplegendre/spack","owner":{"login":"mplegendre","id":4440062,"avatar_url":"https://avatars.githubusercontent.com/u/4440062?v=3","gravatar_id":"","url":"https://api.github.com/users/mplegendre","html_url":"https://github.com/mplegendre","followers_url":"https://api.github.com/users/mplegendre/followers","following_url":"https://api.github.com/users/mplegendre/following{/other_user}","gists_url":"https://api.github.com/users/mplegendre/gists{/gist_id}","starred_url":"https://api.github.com/users/mplegendre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mplegendre/subscriptions","organizations_url":"https://api.github.com/users/mplegendre/orgs","repos_url":"https://api.github.com/users/mplegendre/repos","events_url":"https://api.github.com/users/mplegendre/events{/privacy}","received_events_url":"https://api.github.com/users/mplegendre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mplegendre/spack","description":"A flexible package manager designed to support multiple versions, configurations, platforms, and compilers.","fork":true,"url":"https://api.github.com/repos/mplegendre/spack","forks_url":"https://api.github.com/repos/mplegendre/spack/forks","keys_url":"https://api.github.com/repos/mplegendre/spack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mplegendre/spack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mplegendre/spack/teams","hooks_url":"https://api.github.com/repos/mplegendre/spack/hooks","issue_events_url":"https://api.github.com/repos/mplegendre/spack/issues/events{/number}","events_url":"https://api.github.com/repos/mplegendre/spack/events","assignees_url":"https://api.github.com/repos/mplegendre/spack/assignees{/user}","branches_url":"https://api.github.com/repos/mplegendre/spack/branches{/branch}","tags_url":"https://api.github.com/repos/mplegendre/spack/tags","blobs_url":"https://api.github.com/repos/mplegendre/spack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mplegendre/spack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mplegendre/spack/git/refs{/sha}","trees_url":"https://api.github.com/repos/mplegendre/spack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mplegendre/spack/statuses/{sha}","languages_url":"https://api.github.com/repos/mplegendre/spack/languages","stargazers_url":"https://api.github.com/repos/mplegendre/spack/stargazers","contributors_url":"https://api.github.com/repos/mplegendre/spack/contributors","subscribers_url":"https://api.github.com/repos/mplegendre/spack/subscribers","subscription_url":"https://api.github.com/repos/mplegendre/spack/subscription","commits_url":"https://api.github.com/repos/mplegendre/spack/commits{/sha}","git_commits_url":"https://api.github.com/repos/mplegendre/spack/git/commits{/sha}","comments_url":"https://api.github.com/repos/mplegendre/spack/comments{/number}","issue_comment_url":"https://api.github.com/repos/mplegendre/spack/issues/comments{/number}","contents_url":"https://api.github.com/repos/mplegendre/spack/contents/{+path}","compare_url":"https://api.github.com/repos/mplegendre/spack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mplegendre/spack/merges","archive_url":"https://api.github.com/repos/mplegendre/spack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mplegendre/spack/downloads","issues_url":"https://api.github.com/repos/mplegendre/spack/issues{/number}","pulls_url":"https://api.github.com/repos/mplegendre/spack/pulls{/number}","milestones_url":"https://api.github.com/repos/mplegendre/spack/milestones{/number}","notifications_url":"https://api.github.com/repos/mplegendre/spack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mplegendre/spack/labels{/name}","releases_url":"https://api.github.com/repos/mplegendre/spack/releases{/id}","deployments_url":"https://api.github.com/repos/mplegendre/spack/deployments","created_at":"2015-03-20T17:17:40Z","updated_at":"2015-03-20T17:17:41Z","pushed_at":"2016-11-12T08:58:31Z","git_url":"git://github.com/mplegendre/spack.git","ssh_url":"git@github.com:mplegendre/spack.git","clone_url":"https://github.com/mplegendre/spack.git","svn_url":"https://github.com/mplegendre/spack","homepage":"http://scalability-llnl.github.io/spack","size":12083,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LLNL:develop","ref":"develop","sha":"09470ec672a27a87a75c127d0c13a9945861da4a","user":{"login":"LLNL","id":5921419,"avatar_url":"https://avatars.githubusercontent.com/u/5921419?v=3","gravatar_id":"","url":"https://api.github.com/users/LLNL","html_url":"https://github.com/LLNL","followers_url":"https://api.github.com/users/LLNL/followers","following_url":"https://api.github.com/users/LLNL/following{/other_user}","gists_url":"https://api.github.com/users/LLNL/gists{/gist_id}","starred_url":"https://api.github.com/users/LLNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LLNL/subscriptions","organizations_url":"https://api.github.com/users/LLNL/orgs","repos_url":"https://api.github.com/users/LLNL/repos","events_url":"https://api.github.com/users/LLNL/events{/privacy}","received_events_url":"https://api.github.com/users/LLNL/received_events","type":"Organization","site_admin":false},"repo":{"id":15730865,"name":"spack","full_name":"LLNL/spack","owner":{"login":"LLNL","id":5921419,"avatar_url":"https://avatars.githubusercontent.com/u/5921419?v=3","gravatar_id":"","url":"https://api.github.com/users/LLNL","html_url":"https://github.com/LLNL","followers_url":"https://api.github.com/users/LLNL/followers","following_url":"https://api.github.com/users/LLNL/following{/other_user}","gists_url":"https://api.github.com/users/LLNL/gists{/gist_id}","starred_url":"https://api.github.com/users/LLNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LLNL/subscriptions","organizations_url":"https://api.github.com/users/LLNL/orgs","repos_url":"https://api.github.com/users/LLNL/repos","events_url":"https://api.github.com/users/LLNL/events{/privacy}","received_events_url":"https://api.github.com/users/LLNL/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LLNL/spack","description":"A flexible package manager designed to support multiple versions, configurations, platforms, and compilers.","fork":false,"url":"https://api.github.com/repos/LLNL/spack","forks_url":"https://api.github.com/repos/LLNL/spack/forks","keys_url":"https://api.github.com/repos/LLNL/spack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LLNL/spack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LLNL/spack/teams","hooks_url":"https://api.github.com/repos/LLNL/spack/hooks","issue_events_url":"https://api.github.com/repos/LLNL/spack/issues/events{/number}","events_url":"https://api.github.com/repos/LLNL/spack/events","assignees_url":"https://api.github.com/repos/LLNL/spack/assignees{/user}","branches_url":"https://api.github.com/repos/LLNL/spack/branches{/branch}","tags_url":"https://api.github.com/repos/LLNL/spack/tags","blobs_url":"https://api.github.com/repos/LLNL/spack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LLNL/spack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LLNL/spack/git/refs{/sha}","trees_url":"https://api.github.com/repos/LLNL/spack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LLNL/spack/statuses/{sha}","languages_url":"https://api.github.com/repos/LLNL/spack/languages","stargazers_url":"https://api.github.com/repos/LLNL/spack/stargazers","contributors_url":"https://api.github.com/repos/LLNL/spack/contributors","subscribers_url":"https://api.github.com/repos/LLNL/spack/subscribers","subscription_url":"https://api.github.com/repos/LLNL/spack/subscription","commits_url":"https://api.github.com/repos/LLNL/spack/commits{/sha}","git_commits_url":"https://api.github.com/repos/LLNL/spack/git/commits{/sha}","comments_url":"https://api.github.com/repos/LLNL/spack/comments{/number}","issue_comment_url":"https://api.github.com/repos/LLNL/spack/issues/comments{/number}","contents_url":"https://api.github.com/repos/LLNL/spack/contents/{+path}","compare_url":"https://api.github.com/repos/LLNL/spack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LLNL/spack/merges","archive_url":"https://api.github.com/repos/LLNL/spack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LLNL/spack/downloads","issues_url":"https://api.github.com/repos/LLNL/spack/issues{/number}","pulls_url":"https://api.github.com/repos/LLNL/spack/pulls{/number}","milestones_url":"https://api.github.com/repos/LLNL/spack/milestones{/number}","notifications_url":"https://api.github.com/repos/LLNL/spack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LLNL/spack/labels{/name}","releases_url":"https://api.github.com/repos/LLNL/spack/releases{/id}","deployments_url":"https://api.github.com/repos/LLNL/spack/deployments","created_at":"2014-01-08T09:22:12Z","updated_at":"2016-11-11T20:24:23Z","pushed_at":"2016-11-13T00:06:13Z","git_url":"git://github.com/LLNL/spack.git","ssh_url":"git@github.com:LLNL/spack.git","clone_url":"https://github.com/LLNL/spack.git","svn_url":"https://github.com/LLNL/spack","homepage":"http://software.llnl.gov/spack","size":21805,"stargazers_count":172,"watchers_count":172,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":156,"mirror_url":null,"open_issues_count":406,"forks":156,"open_issues":406,"watchers":172,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/LLNL/spack/pulls/2315"},"html":{"href":"https://github.com/LLNL/spack/pull/2315"},"issue":{"href":"https://api.github.com/repos/LLNL/spack/issues/2315"},"comments":{"href":"https://api.github.com/repos/LLNL/spack/issues/2315/comments"},"review_comments":{"href":"https://api.github.com/repos/LLNL/spack/pulls/2315/comments"},"review_comment":{"href":"https://api.github.com/repos/LLNL/spack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LLNL/spack/pulls/2315/commits"},"statuses":{"href":"https://api.github.com/repos/LLNL/spack/statuses/230b3bdb07457a92aeb86fa3949805716b798cd2"}}}}
{"actor":{"display_login":"adamjstewart"}}