I’m preparing a PR for the Google Magenta project <https://magenta.tensorflow.org>, and am running into this issue for the “note-seq” dependent package with this setup.py:
https://github.com/magenta/note-seq/blob/master/setup.py <https://github.com/magenta/note-seq/blob/master/setup.py> > raise DistutilsError('the `allow-hosts` option is not supported ' > distutils.errors.DistutilsError: the `allow-hosts` option is not supported > when using pip to install requirements. I (believe I) have all the correct dependencies installed, and see that this is an issue with setuptools elsewhere, .e.g., https://github.com/pypa/setuptools/issues/1916#issuecomment-562788843 Is there a straightforward workaround to this issue? Full log error: > … > :info:build Executing: cd > "/opt/local/var/macports/build/_opt_local_ports_python_py-note-seq/py37-note-seq/work/note-seq-0.0.0" > && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 > setup.py --no-user-cfg build -j12 > :debug:build system: cd > "/opt/local/var/macports/build/_opt_local_ports_python_py-note-seq/py37-note-seq/work/note-seq-0.0.0" > && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 > setup.py --no-user-cfg build -j12 > :info:build Traceback (most recent call last): > :info:build File "setup.py", line 67, in <module> > :info:build 'pylint >= 2.4.2', > :info:build File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", > line 160, in setup > :info:build _install_setup_requires(attrs) > :info:build File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", > line 155, in _install_setup_requires > :info:build dist.fetch_build_eggs(dist.setup_requires) > :info:build File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", > line 698, in fetch_build_eggs > :info:build replace_conflicting=True, > :info:build File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", > line 782, in resolve > :info:build replace_conflicting=replace_conflicting > :info:build File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", > line 1065, in best_match > :info:build return self.obtain(req, installer) > :info:build File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", > line 1077, in obtain > :info:build return installer(requirement) > :info:build File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", > line 754, in fetch_build_egg > :info:build return fetch_build_egg(self, req) > :info:build File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/installer.py", > line 83, in fetch_build_egg > :info:build raise DistutilsError('the `allow-hosts` option is not > supported ' > :info:build distutils.errors.DistutilsError: the `allow-hosts` option is not > supported when using pip to install requirements. > :info:build Command failed: cd > "/opt/local/var/macports/build/_opt_local_ports_python_py-note-seq/py37-note-seq/work/note-seq-0.0.0" > && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 > setup.py --no-user-cfg build -j12 > :info:build Exit code: 1 > :error:build Failed to build py37-note-seq: command execution failed > :debug:build Error code: CHILDSTATUS 10565 1 > :debug:build Backtrace: command execution failed > :debug:build while executing > :debug:build "system {*}$notty {*}$nice $fullcmdstring" > :debug:build invoked from within > :debug:build "command_exec build" > :debug:build (procedure "portbuild::build_main" line 8) > :debug:build invoked from within > :debug:build "$procedure $targetname" > :error:build See > /opt/local/var/macports/logs/_opt_local_ports_python_py-note-seq/py37-note-seq/main.log > for details. Draft Portfile: > # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; > c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 > > PortSystem 1.0 > PortGroup github 1.0 > PortGroup python 1.0 > > github.setup magenta note-seq a18f4ba > revision 20200622 > name py-${github.project} > categories-append audio > > version 0.0.0 > platforms darwin > license Apache-2 > maintainers nomaintainer > > description Use machine learning to create art and music. > long_description ${description}. This is\ > the home for our serializable NoteSequence\ > representation along with utilities for: creating\ > them from various formats (e.g., MIDI, abc,\ > MusicXML)\; manipulating them (e.g., slicing,\ > quantizing) extracting components (e.g., melodies,\ > drum tracks, chord)\; exporting them (e.g., to MIDI\ > or audio)\; or converting them to representations\ > useful for model training (e.g., one-hot tensors). > > homepage https://magenta.tensorflow.org/ > distname ${github.project}-${version} > > checksums rmd160 96aa00282fa38a8ce63d563c2c667d6f241e1850 \ > sha256 > 5a96d9d4a179cc6f03975d61f379689afc282df524af0613107591dd2aed9223 \ > size 952994 > > python.versions 37 38 > > if {${name} ne ${subport}} { > depends_build-append \ > port:py${python.version}-setuptools > > depends_run-append \ > port:py${python.version}-absl \ > port:py${python.version}-attrs \ > port:py${python.version}-bokeh \ > port:py${python.version}-intervaltree \ > port:py${python.version}-ipython \ > port:py${python.version}-librosa \ > port:py${python.version}-numba \ > port:py${python.version}-numpy \ > port:py${python.version}-pandas \ > port:py${python.version}-pretty-midi \ > port:py${python.version}-protobuf3 \ > port:py${python.version}-scikit-image \ > port:py${python.version}-scipy > > depends_test-append \ > port:py${python.version}-pylint \ > port:py${python.version}-pytest \ > port:py${python.version}-pytest-xdist > > test.run yes > test.cmd py.test-${python.branch} > test.target > test.env-append \ > "PATH=$env(PATH):${workpath}/bin" \ > PYTHONPATH=${worksrcpath}/build/lib > > post-destroot { > set docdir ${prefix}/share/doc/${subport} > xinstall -d ${destroot}${docdir} > xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \ > ${destroot}${docdir} > } > > livecheck.type none > }
smime.p7s
Description: S/MIME cryptographic signature
