Hello,
Untill the PR (pull request) is accepted in the main spack repository, the custom package.py file has to be placed in a local configuration. The steps are as folllows:
1) Ensure you have a python 2.7 or 3.5-3.9 available on your system; Also a recent compiler (I am using GCC 7.4, which is not the most recent).
7) Add the package.py provided in a subdirectory of the newly created local repository, eg. ~/<repo_root_dir>/<name_space_dir>/packages/xyce/ where <repo_root_dir> is the name of the repository's root directory, and <name_space_dir> is the name of a name-space inside it (if assigned by default it will match the repository name).
Now you are set to run the command listed previously "spack install xyce -mpi +pymi +plugins". Normally it will install ADMS as part of the dependencies (on my side, I had installed it manully upfront with "spack install adms").
The instructions (1) till (5) are the standard installation steps for spack. (5) to (9) are the customization steps needed to use the customized xyce package. Once the PR
https://github.com/spack/spack/pull/28698 is accepted and executed, these steps will not be necessary anymore, and in particular step (9) should be reversed to gain access to the "official" package.
Then the Xyce test-suite can be run, taking into account that it requires the Numpy and Scipy packages to be installed, and that spack tends to load "its own python" along with Xyce (probably because of the +pymi option), which by default does not have those packages installed. I chose to solve that issue by unloading the spack installed python to rely on my preferred python installation (which has many packages installed). The unload commands (in bash) are as follows:
spack unload python
spack unload py-pip
spack unload py-pybind11
spack unload py-setuptools
Once this had been done, most of the 2500+ tests passed with maybe the exception of a couple (less than 10 failures -- see attached test results above).
Success !
Renaud