GalacticDynamics-Oxford / Agama

Action-based galaxy modeling framework
Other
73 stars 36 forks source link

Error in installation using pip #8

Closed nstarman closed 5 months ago

nstarman commented 3 years ago

If I make AGAMA a package dependency in my requirements file it cannot be installed on a CI or ReadTheDocs because the new PIP version resolver checks Agama's metadata and doesn't like the difference between 1.0b and 1.0.

Collecting agama
  Downloading agama-1.0b.tar.gz (2.1 kB)
  WARNING: Requested agama from https://files.pythonhosted.org/packages/20/e5/a378745ddd3d06acdabf07dd05ead1df2a3bb972aadfe5f06f54c2edabce/agama-1.0b.tar.gz#sha256=01817ab0939dbe85f4e28a810841976e29f96805110c48aa02524ddc5422b4c4 (from test-package==0.1.dev31+ga4c0ef1), but installing version 1.0
eugvas commented 3 years ago

how picky it is! I tried to update the stub installation script hosted at PyPI, but possibly messed it up even further - please check if it works.

nstarman commented 3 years ago

Thanks @eugvas for the prompt fix! the pip installation now works for metadata. It doesn't fully install as the GSL compilation is not working, but I'll try to get that fixed before raising an issue.

nstarman commented 3 years ago
Processing /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/checkouts/17
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting agama
  Downloading agama-1.00.tar.gz (2.0 kB)
Collecting astropy
  Downloading astropy-4.2-cp37-cp37m-manylinux1_x86_64.whl (9.7 MB)
Collecting numpy
  Downloading numpy-1.19.5-cp37-cp37m-manylinux2010_x86_64.whl (14.8 MB)
Collecting galpy
  Downloading galpy-1.6.0.post0-cp37-cp37m-manylinux2014_x86_64.whl (5.9 MB)
Requirement already satisfied: future in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from galpy->discO==0.1.dev37+gca28c00) (0.18.2)
Requirement already satisfied: setuptools in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from galpy->discO==0.1.dev37+gca28c00) (41.0.1)
Requirement already satisfied: six in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from galpy->discO==0.1.dev37+gca28c00) (1.15.0)
Collecting jupyter-client
  Downloading jupyter_client-6.1.11-py3-none-any.whl (108 kB)
Collecting jupyter-core>=4.6.0
  Downloading jupyter_core-4.7.0-py3-none-any.whl (82 kB)
Collecting python-dateutil>=2.1
  Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pyzmq>=13
  Downloading pyzmq-20.0.0-cp37-cp37m-manylinux1_x86_64.whl (1.1 MB)
Collecting tornado>=4.1
  Downloading tornado-6.1-cp37-cp37m-manylinux2010_x86_64.whl (428 kB)
Collecting matplotlib
  Downloading matplotlib-3.3.3-cp37-cp37m-manylinux1_x86_64.whl (11.6 MB)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from matplotlib->galpy->discO==0.1.dev37+gca28c00) (2.4.7)
Collecting cycler>=0.10
  Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.3.1-cp37-cp37m-manylinux1_x86_64.whl (1.1 MB)
Collecting pillow>=6.2.0
  Downloading Pillow-8.1.0-cp37-cp37m-manylinux1_x86_64.whl (2.2 MB)
Collecting nbsphinx
  Downloading nbsphinx-0.8.0-py3-none-any.whl (24 kB)
Requirement already satisfied: sphinx>=1.8 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from nbsphinx->discO==0.1.dev37+gca28c00) (3.4.3)
Requirement already satisfied: docutils in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from nbsphinx->discO==0.1.dev37+gca28c00) (0.16)
Requirement already satisfied: jinja2 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from nbsphinx->discO==0.1.dev37+gca28c00) (2.11.2)
Collecting nbconvert!=5.4
  Downloading nbconvert-6.0.7-py3-none-any.whl (552 kB)
Requirement already satisfied: pygments>=2.4.1 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from nbconvert!=5.4->nbsphinx->discO==0.1.dev37+gca28c00) (2.7.3)
Collecting entrypoints>=0.2.2
  Downloading entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: MarkupSafe>=0.23 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from jinja2->nbsphinx->discO==0.1.dev37+gca28c00) (1.1.1)
Collecting mistune<2,>=0.8.1
  Downloading mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting nbclient<0.6.0,>=0.5.0
  Downloading nbclient-0.5.1-py3-none-any.whl (65 kB)
Collecting nbformat
  Downloading nbformat-5.0.8-py3-none-any.whl (172 kB)
Collecting jsonschema!=2.5.0,>=2.4
  Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting attrs>=17.4.0
  Downloading attrs-20.3.0-py2.py3-none-any.whl (49 kB)
Collecting pandocfilters>=1.4.1
  Downloading pandocfilters-1.4.3.tar.gz (16 kB)
Collecting pyrsistent>=0.14.0
  Downloading pyrsistent-0.17.3.tar.gz (106 kB)
Requirement already satisfied: requests>=2.5.0 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (2.25.1)
Requirement already satisfied: sphinxcontrib-htmlhelp in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (1.0.3)
Requirement already satisfied: sphinxcontrib-applehelp in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (1.0.2)
Requirement already satisfied: sphinxcontrib-qthelp in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (1.0.3)
Requirement already satisfied: alabaster<0.8,>=0.7 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (0.7.12)
Requirement already satisfied: sphinxcontrib-serializinghtml in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (1.1.4)
Requirement already satisfied: sphinxcontrib-devhelp in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (1.0.2)
Requirement already satisfied: babel>=1.3 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (2.9.0)
Requirement already satisfied: packaging in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (20.8)
Requirement already satisfied: imagesize in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (1.2.0)
Requirement already satisfied: snowballstemmer>=1.1 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (2.0.0)
Requirement already satisfied: sphinxcontrib-jsmath in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (1.0.1)
Requirement already satisfied: pytz>=2015.7 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from babel>=1.3->sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (2020.5)
Requirement already satisfied: certifi>=2017.4.17 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from requests>=2.5.0->sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from requests>=2.5.0->sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from requests>=2.5.0->sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages (from requests>=2.5.0->sphinx>=1.8->nbsphinx->discO==0.1.dev37+gca28c00) (1.26.2)
Collecting traitlets
  Downloading traitlets-5.0.5-py3-none-any.whl (100 kB)
Collecting async-generator
  Downloading async_generator-1.10-py3-none-any.whl (18 kB)
Collecting bleach
  Downloading bleach-3.2.1-py2.py3-none-any.whl (145 kB)
Collecting defusedxml
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting importlib-metadata
  Downloading importlib_metadata-3.3.0-py3-none-any.whl (10 kB)
Collecting typing-extensions
  Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Collecting zipp>=0.5
  Downloading zipp-3.4.0-py3-none-any.whl (5.2 kB)
Collecting ipython-genutils
  Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting jupyterlab-pygments
  Downloading jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB)
Collecting nest-asyncio
  Downloading nest_asyncio-1.4.3-py3-none-any.whl (5.3 kB)
Collecting pyerfa
  Downloading pyerfa-1.7.1.1-cp37-cp37m-manylinux2010_x86_64.whl (696 kB)
Collecting pytest
  Downloading pytest-6.2.1-py3-none-any.whl (279 kB)
Collecting pluggy<1.0.0a1,>=0.12
  Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting py>=1.8.2
  Downloading py-1.10.0-py2.py3-none-any.whl (97 kB)
Collecting iniconfig
  Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting PyYAML
  Downloading PyYAML-5.3.1.tar.gz (269 kB)
Collecting scipy
  Downloading scipy-1.6.0-cp37-cp37m-manylinux1_x86_64.whl (27.4 MB)
Collecting sphinx-astropy
  Downloading sphinx_astropy-1.3-py2.py3-none-any.whl (17 kB)
Collecting astropy-sphinx-theme
  Downloading astropy_sphinx_theme-1.1-py2.py3-none-any.whl (31 kB)
Collecting numpydoc
  Downloading numpydoc-1.1.0-py3-none-any.whl (47 kB)
Collecting sphinx-automodapi
  Downloading sphinx_automodapi-0.13-py3-none-any.whl (75 kB)
Collecting sphinx-gallery
  Downloading sphinx-gallery-0.8.2.tar.gz (6.5 MB)
Collecting testpath
  Downloading testpath-0.4.4-py2.py3-none-any.whl (163 kB)
Collecting toml
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting webencodings
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting setuptools
  Downloading setuptools-51.1.2-py3-none-any.whl (784 kB)
Building wheels for collected packages: discO, agama, pandocfilters, pyrsistent, PyYAML, sphinx-gallery
  Building wheel for discO (PEP 517): started
  Building wheel for discO (PEP 517): finished with status 'done'
  Created wheel for discO: filename=discO-0.1.dev37+gca28c00-py3-none-any.whl size=34557 sha256=20e10888b83df9bad9b7bbea847587c0c516e4e09d52a6b7cfc8f9142c1a0f07
  Stored in directory: /tmp/pip-ephem-wheel-cache-voe3wd_e/wheels/c8/ca/91/6865479e3f2a3f258037aa682b1532d4877dcd60aaf37be5d9
  Building wheel for agama (setup.py): started
  Building wheel for agama (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wv619m8k/agama_86449bae851b4d0f98bb4695c15aa68a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wv619m8k/agama_86449bae851b4d0f98bb4695c15aa68a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-zka65bce
       cwd: /tmp/pip-install-wv619m8k/agama_86449bae851b4d0f98bb4695c15aa68a/
  Complete output (293 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/agama
  copying ./__init__.py -> build/lib.linux-x86_64-3.7/agama
  creating build/lib.linux-x86_64-3.7/agama/data
  copying ./data/phaseflow_corecollapse.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/Piffl14.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/convertpot.pl -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/McMillan11_best.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/raga_corecollapse.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/BestFitPotential.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/SCM3.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/McMillan11_convenient.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/convertcoefs.pl -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/BT08.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/PriceWhelan19.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/schwarzschild_axisym.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/phaseflow_bahcallwolfcusp.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/SCM.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/MWPotential2014galpy.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/Irrgang13.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/GSM_potential.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/McMillan17.ini -> build/lib.linux-x86_64-3.7/agama/data
  copying ./data/MWPotential2014.ini -> build/lib.linux-x86_64-3.7/agama/data
  creating build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/D1.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/Sampling.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/readme_raga.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/SplineLogDensity.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/raga.png -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/GHmoments.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/Colormaps.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/readme_raga.tex -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/D0.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/EulerAngles.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/DensityGrid.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/MN.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/reference.tex -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/SplineKernels.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/reference.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/D0nb.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/EulerAnglesProjection.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/SplineMonotonic.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/SplineFit.pdf -> build/lib.linux-x86_64-3.7/agama/doc
  copying ./doc/agama.jpg -> build/lib.linux-x86_64-3.7/agama/doc
  creating build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_self_consistent_model_simple.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/test_math.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/test_coordinates.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/pygama.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/__init__.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/schwarzlib.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_amuse_raga.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_target.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_self_consistent_model.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/test_amuse.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_actions_nbody.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/gc_modelparamsJ.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/gc_runfit.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_amuse.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/test_user_profiles.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_deprojection.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_torus.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/gc_resample.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_self_consistent_model3.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/schwarzschild.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/agamacolormaps.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_smoothing_spline.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/test_batch_computations.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_schwarzschild_triaxial.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_time_dependent_potential.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_forstand.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/test_compositions.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_gizmo_snapshot.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/gc_modelparamsE.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_df_fit.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/amuse_interface.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/alltest.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_schwarzschild_flattened_rotating.py -> build/lib.linux-x86_64-3.7/agama/py
  copying ./py/example_galpy.py -> build/lib.linux-x86_64-3.7/agama/py
  creating build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_torus.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_core.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_base.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_fokkerplanck.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_composite.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_utils.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_losvd.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_king.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_densitygrid.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_trajectory.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_binary.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_isochrone.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/coord.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_relaxation.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_base.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_factory.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_perfect_ellipsoid.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_spheroid.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_staeckel.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_velocitysampler.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_ferrers.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_torus.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/particles_io.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_perfect_ellipsoid.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_halo.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_spherical.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_simple_cubature.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/coord.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_composite.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_cylspline.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_losscone.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_spherical.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_selfconsistent.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_selfconsistent.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_velocitysampler.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_fokkerplanck.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/orbit.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_halo.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_utils.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_base.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/utils.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/utils_config.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_binary.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_disk.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/debug_utils.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/utils_config.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_disk.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_specfunc.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_core.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_glquadrature.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_densitygrid.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_interpolated.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_linalg.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/units.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_fit.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_interpolated.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_potential.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_potential.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_spheroid.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_factory.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_ode.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_isochrone.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_base.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_optimization.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_base.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_spherical.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_cylspline.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_geometry.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_multipole.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_king.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_base.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_ferrers.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/particles_base.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/orbit.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_staeckel.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/orbit_lyapunov.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_dehnen.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/particles_io.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_disk.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_base.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_specfunc.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_jeans.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/cubature.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_sphharm.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/utils.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_dehnen.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_sample.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_disk.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_jeans.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_random.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_sphharm.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_focal_distance_finder.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_base.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_base.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_analytic.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/cubature.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_fit.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/df_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/fortran_wrapper.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/actions_focal_distance_finder.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_gausshermite.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_losscone.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_relaxation.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_base.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/amuse_wrapper.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_factory.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_geometry.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_spline.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_target.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/orbit_lyapunov.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_ode.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_multipole.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_factory.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_gausshermite.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_spline.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_random.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_sample.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_optimization.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/math_linalg.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_core.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/potential_analytic.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/nemo_wrapper.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_trajectory.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/galaxymodel_losvd.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/py_wrapper.cpp -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/smart.h -> build/lib.linux-x86_64-3.7/agama/src
  copying ./src/raga_core.cpp -> build/lib.linux-x86_64-3.7/agama/src
  creating build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/WD_Vector.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Orb.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Torus.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Toy_Isochrone.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/CHB.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/GeneratingFunction.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/WD_Numerics.templates -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/CHB.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/PJMNum.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Units.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/PJM_utils.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Orb.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/PJMCoords.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Point_None.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Maps.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Point_ClosedOrbitCheby.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Types.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Fit2.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Point_ClosedOrbitCheby.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Fit.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Torus.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Point_None.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/WD_Matrix.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/WD_FreeMemory.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Potential.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Fit.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/WD_Numerics.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/GeneratingFunction.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Toy_Isochrone.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Pi.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/PJMCoords.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/Constants.h -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/WD_Numerics.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  copying ./src/torus/PJMNum.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
  creating build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_actions_torus.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_df_halo.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_potential_expansions.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/example_actions_nbody.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_losvd.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_fortran.f -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_action_finder.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_math_core.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_density_grid.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_potentials.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_df_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_math_spline.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_orbit_lyapunov.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/phaseflow.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_actions_isochrone.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/example_doublepowerlaw.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/mkspherical.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_coord.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/example_df_fit.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_orbit_integr.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_utils.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_actions_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/raga.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_units.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_actions_staeckel.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/example_self_consistent_model.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./tests/test_math_linalg.cpp -> build/lib.linux-x86_64-3.7/agama/tests
  copying ./Makefile -> build/lib.linux-x86_64-3.7/agama
  copying ./Makefile.local.template -> build/lib.linux-x86_64-3.7/agama
  copying ./Doxyfile -> build/lib.linux-x86_64-3.7/agama
  copying ./INSTALL -> build/lib.linux-x86_64-3.7/agama
  copying ./LICENSE -> build/lib.linux-x86_64-3.7/agama
  copying ./README -> build/lib.linux-x86_64-3.7/agama
  running build_ext

      ==== Checking supported compiler options and available libraries ====

  g++ -Wall test.cpp -o /dev/null
  g++ -Wall test.cpp -o /dev/null -fopenmp -Werror -Wno-unknown-pragmas
  g++ -Wall test.cpp -o /dev/null -std=c++11
  g++ -Wall test.cpp -o /dev/null -march=native
  g++ -Wall test.cpp -o /dev/null -qno-opt-dynamic-align
  g++: error: unrecognized command line option ‘-qno-opt-dynamic-align’
  error: NumPy is not present - python extension cannot be compiled
  ----------------------------------------
  ERROR: Failed building wheel for agama
  Running setup.py clean for agama
  Building wheel for pandocfilters (setup.py): started
  Building wheel for pandocfilters (setup.py): finished with status 'done'
  Created wheel for pandocfilters: filename=pandocfilters-1.4.3-py3-none-any.whl size=7992 sha256=31c086cc8a3a3b5cfe8b5900f4b06af5412888797c52f71f9670e15acef9da77
  Stored in directory: /tmp/pip-ephem-wheel-cache-voe3wd_e/wheels/42/81/34/545dc2fbf0e9137811e901108d37fc04650e81d48f97078000
  Building wheel for pyrsistent (setup.py): started
  Building wheel for pyrsistent (setup.py): finished with status 'done'
  Created wheel for pyrsistent: filename=pyrsistent-0.17.3-cp37-cp37m-linux_x86_64.whl size=115330 sha256=835c4119c76f970b76c2dcaa9579e81ac7485723112c5229c75ff4be8281839e
  Stored in directory: /tmp/pip-ephem-wheel-cache-voe3wd_e/wheels/a5/52/bf/71258a1d7b3c8cbe1ee53f9314c6f65f20385481eaee573cc5
  Building wheel for PyYAML (setup.py): started
  Building wheel for PyYAML (setup.py): finished with status 'done'
  Created wheel for PyYAML: filename=PyYAML-5.3.1-cp37-cp37m-linux_x86_64.whl size=44620 sha256=9931d2357e5f34d1544bad8cba7140c58f65b3f92fe2bf741f97a8856133f4ba
  Stored in directory: /tmp/pip-ephem-wheel-cache-voe3wd_e/wheels/5e/03/1e/e1e954795d6f35dfc7b637fe2277bff021303bd9570ecea653
  Building wheel for sphinx-gallery (setup.py): started
  Building wheel for sphinx-gallery (setup.py): finished with status 'done'
  Created wheel for sphinx-gallery: filename=sphinx_gallery-0.8.2-py3-none-any.whl size=124843 sha256=365d1bbcdeb91aaa91993a287601da7ce57ce53bddb10237b48f4f4cc1cda219
  Stored in directory: /tmp/pip-ephem-wheel-cache-voe3wd_e/wheels/56/4e/5c/70c09fabd4ef31f868b27b7d95768226423a14e789db95af57
Successfully built discO pandocfilters pyrsistent PyYAML sphinx-gallery
Failed to build agama
Installing collected packages: zipp, typing-extensions, ipython-genutils, traitlets, setuptools, pyrsistent, importlib-metadata, attrs, tornado, pyzmq, python-dateutil, jupyter-core, jsonschema, webencodings, numpy, nest-asyncio, nbformat, jupyter-client, async-generator, toml, testpath, pyerfa, py, pluggy, pillow, pandocfilters, nbclient, mistune, kiwisolver, jupyterlab-pygments, iniconfig, entrypoints, defusedxml, cycler, bleach, sphinx-gallery, sphinx-automodapi, scipy, PyYAML, pytest, numpydoc, nbconvert, matplotlib, astropy-sphinx-theme, astropy, sphinx-astropy, nbsphinx, galpy, discO, agama
  Attempting uninstall: setuptools
    Found existing installation: setuptools 41.0.1
    Uninstalling setuptools-41.0.1:
      Successfully uninstalled setuptools-41.0.1
  Attempting uninstall: pillow
    Found existing installation: Pillow 5.4.1
    Uninstalling Pillow-5.4.1:
      Successfully uninstalled Pillow-5.4.1
    Running setup.py install for agama: started
    Running setup.py install for agama: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wv619m8k/agama_86449bae851b4d0f98bb4695c15aa68a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wv619m8k/agama_86449bae851b4d0f98bb4695c15aa68a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-5bfzf3hh/install-record.txt --single-version-externally-managed --compile --install-headers /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/include/site/python3.7/agama
         cwd: /tmp/pip-install-wv619m8k/agama_86449bae851b4d0f98bb4695c15aa68a/
    Complete output (303 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/agama
    copying ./__init__.py -> build/lib.linux-x86_64-3.7/agama
    creating build/lib.linux-x86_64-3.7/agama/data
    copying ./data/phaseflow_corecollapse.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/Piffl14.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/convertpot.pl -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/McMillan11_best.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/raga_corecollapse.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/BestFitPotential.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/SCM3.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/McMillan11_convenient.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/convertcoefs.pl -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/BT08.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/PriceWhelan19.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/schwarzschild_axisym.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/phaseflow_bahcallwolfcusp.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/SCM.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/MWPotential2014galpy.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/Irrgang13.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/GSM_potential.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/McMillan17.ini -> build/lib.linux-x86_64-3.7/agama/data
    copying ./data/MWPotential2014.ini -> build/lib.linux-x86_64-3.7/agama/data
    creating build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/D1.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/Sampling.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/readme_raga.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/SplineLogDensity.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/raga.png -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/GHmoments.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/Colormaps.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/readme_raga.tex -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/D0.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/EulerAngles.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/DensityGrid.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/MN.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/reference.tex -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/SplineKernels.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/reference.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/D0nb.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/EulerAnglesProjection.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/SplineMonotonic.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/SplineFit.pdf -> build/lib.linux-x86_64-3.7/agama/doc
    copying ./doc/agama.jpg -> build/lib.linux-x86_64-3.7/agama/doc
    creating build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_self_consistent_model_simple.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/test_math.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/test_coordinates.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/pygama.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/__init__.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/schwarzlib.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_amuse_raga.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_target.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_self_consistent_model.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/test_amuse.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_actions_nbody.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/gc_modelparamsJ.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/gc_runfit.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_amuse.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/test_user_profiles.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_deprojection.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_torus.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/gc_resample.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_self_consistent_model3.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/schwarzschild.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/agamacolormaps.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_smoothing_spline.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/test_batch_computations.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_schwarzschild_triaxial.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_time_dependent_potential.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_forstand.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/test_compositions.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_gizmo_snapshot.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/gc_modelparamsE.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_df_fit.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/amuse_interface.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/alltest.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_schwarzschild_flattened_rotating.py -> build/lib.linux-x86_64-3.7/agama/py
    copying ./py/example_galpy.py -> build/lib.linux-x86_64-3.7/agama/py
    creating build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_torus.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_core.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_base.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_fokkerplanck.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_composite.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_utils.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_losvd.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_king.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_densitygrid.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_trajectory.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_binary.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_isochrone.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/coord.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_relaxation.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_base.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_factory.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_perfect_ellipsoid.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_spheroid.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_staeckel.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_velocitysampler.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_ferrers.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_torus.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/particles_io.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_perfect_ellipsoid.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_halo.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_spherical.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_simple_cubature.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/coord.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_composite.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_cylspline.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_losscone.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_spherical.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_selfconsistent.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_selfconsistent.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_velocitysampler.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_fokkerplanck.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/orbit.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_halo.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_utils.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_base.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/utils.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/utils_config.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_binary.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_disk.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/debug_utils.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/utils_config.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_disk.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_specfunc.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_core.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_glquadrature.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_densitygrid.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_interpolated.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_linalg.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/units.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_fit.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_interpolated.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_potential.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_potential.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_spheroid.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_factory.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_ode.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_isochrone.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_base.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_optimization.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_base.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_spherical.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_cylspline.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_geometry.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_multipole.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_king.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_base.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_ferrers.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/particles_base.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/orbit.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_staeckel.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/orbit_lyapunov.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_dehnen.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/particles_io.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_disk.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_base.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_specfunc.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_jeans.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/cubature.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_sphharm.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/utils.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_dehnen.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_sample.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_disk.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_jeans.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_random.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_sphharm.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_focal_distance_finder.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_base.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_base.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_analytic.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/cubature.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_fit.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/df_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/fortran_wrapper.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/actions_focal_distance_finder.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_gausshermite.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_losscone.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_relaxation.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_base.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/amuse_wrapper.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_factory.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_geometry.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_spline.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_target.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/orbit_lyapunov.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_ode.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_multipole.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_factory.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_gausshermite.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_spline.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_random.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_sample.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_optimization.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/math_linalg.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_core.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/potential_analytic.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/nemo_wrapper.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_trajectory.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/galaxymodel_losvd.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/py_wrapper.cpp -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/smart.h -> build/lib.linux-x86_64-3.7/agama/src
    copying ./src/raga_core.cpp -> build/lib.linux-x86_64-3.7/agama/src
    creating build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/WD_Vector.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Orb.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Torus.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Toy_Isochrone.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/CHB.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/GeneratingFunction.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/WD_Numerics.templates -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/CHB.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/PJMNum.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Units.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/PJM_utils.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Orb.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/PJMCoords.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Point_None.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Maps.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Point_ClosedOrbitCheby.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Types.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Fit2.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Point_ClosedOrbitCheby.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Fit.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Torus.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Point_None.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/WD_Matrix.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/WD_FreeMemory.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Potential.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Fit.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/WD_Numerics.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/GeneratingFunction.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Toy_Isochrone.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Pi.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/PJMCoords.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/Constants.h -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/WD_Numerics.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    copying ./src/torus/PJMNum.cc -> build/lib.linux-x86_64-3.7/agama/src/torus
    creating build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_actions_torus.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_df_halo.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_potential_expansions.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/example_actions_nbody.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_losvd.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_fortran.f -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_action_finder.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_math_core.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_density_grid.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_potentials.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_df_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_math_spline.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_orbit_lyapunov.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/phaseflow.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_actions_isochrone.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/example_doublepowerlaw.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/mkspherical.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_coord.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/example_df_fit.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_orbit_integr.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_utils.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_actions_spherical.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/raga.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_units.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_actions_staeckel.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/example_self_consistent_model.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./tests/test_math_linalg.cpp -> build/lib.linux-x86_64-3.7/agama/tests
    copying ./Makefile -> build/lib.linux-x86_64-3.7/agama
    copying ./Makefile.local.template -> build/lib.linux-x86_64-3.7/agama
    copying ./Doxyfile -> build/lib.linux-x86_64-3.7/agama
    copying ./INSTALL -> build/lib.linux-x86_64-3.7/agama
    copying ./LICENSE -> build/lib.linux-x86_64-3.7/agama
    copying ./README -> build/lib.linux-x86_64-3.7/agama
    running build_ext

        ==== Checking supported compiler options and available libraries ====

    g++ -Wall test.cpp -o /dev/null
    g++ -Wall test.cpp -o /dev/null -fopenmp -Werror -Wno-unknown-pragmas
    g++ -Wall test.cpp -o /dev/null -std=c++11
    g++ -Wall test.cpp -o /dev/null -march=native
    g++ -Wall test.cpp -o /dev/null -qno-opt-dynamic-align
    g++: error: unrecognized command line option ‘-qno-opt-dynamic-align’
        **** Trying the following options for linking against Python library ****
    g++ -Wall test.cpp -o ./agamatest.so -I/home/docs/.pyenv/versions/3.7.9/include/python3.7m -I/home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages/numpy/core/include -shared -fPIC /home/docs/.pyenv/versions/3.7.9/lib/python3.7/config-3.7m-x86_64-linux-gnu/libpython3.7m.a -lcrypt -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
    /usr/bin/ld: /home/docs/.pyenv/versions/3.7.9/lib/python3.7/config-3.7m-x86_64-linux-gnu/libpython3.7m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: Bad value
    collect2: error: ld returned 1 exit status
        **** Trying the following options for linking against Python library ****
    g++ -Wall test.cpp -o ./agamatest.so -I/home/docs/.pyenv/versions/3.7.9/include/python3.7m -I/home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/lib/python3.7/site-packages/numpy/core/include -shared -fPIC /home/docs/.pyenv/versions/3.7.9/lib/libpython3.7m.a -lcrypt -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
    /usr/bin/ld: /home/docs/.pyenv/versions/3.7.9/lib/libpython3.7m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: Bad value
    collect2: error: ld returned 1 exit status
    error: Could not compile test program which uses libpython3.7
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wv619m8k/agama_86449bae851b4d0f98bb4695c15aa68a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wv619m8k/agama_86449bae851b4d0f98bb4695c15aa68a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-5bfzf3hh/install-record.txt --single-version-externally-managed --compile --install-headers /home/docs/checkouts/readthedocs.org/user_builds/astro-disco/envs/17/include/site/python3.7/agama Check the logs for full command output.
eugvas commented 3 years ago

well, something might be wrong with the python installation! the Agama installer script tries to determine suitable compilation and link options among many variants, using either statically or dynamically linked Python library (i.e. something like libpythonx.x.a or libpythonx.x.so), whichever is available. It seems that in your case it was not able to use the .so option, and the .a (static) Python is compiled without the necessary flag -fPIC that allows it to be linked into dynamic libraries (honestly I don't understand why this flag is not enabled by default, since its absense causes so many problems). If you build your python installation yourself, add an option '--enable-shared' in the ./configure arguments (for Python itself), as suggested here: https://github.com/GalacticDynamics-Oxford/Agama/issues/7 You may also try running the following script (without arguments) and check what are the compilation options provided by distutils, and how do they differ from the ones used by the Agama setup script (or just post the output here and I'll try to make sense of it...)

from distutils.core import setup, Extension
from sysconfig import get_config_var
for v in ['LIBRARY','LDLIBRARY','INSTSONAME','LIBDIR','LIBPL',
  'LDSHARED','LDFLAGS','LINKFORSHARED','PYTHONFRAMEWORK','LIBS',
  'SYSLIBS','Py_ENABLE_SHARED','prefix','CFLAGS']:\
      print('%s = %s' % (v, get_config_var(v)))

with open('demo.cpp', 'w') as cfile: cfile.write('int main() {}\n')
setup(script_args=['build_ext'], ext_modules=[Extension('demo', sources=['demo.cpp'])])
nstarman commented 3 years ago

Thanks! I'll take a closer look at this soon. I'm using the astropy package template with the full Github Action to tox to setup.cfg development stack, so hunting down where to even put the -fPIC flag is non-trivial.

nstarman commented 3 years ago

I can't reproduce the errors on my local machine, but the GitHub and RTD VMs both fail...

eugvas commented 1 year ago

it's been a while – does the problem still exist? I've updated the setup script a couple of times since..