$ py2pack generate -t opensuse.spec -f python-jpy.spec jpy
generating spec file for jpy...
Error: environment variable "JAVA_HOME" must be set to a JDK (>= v1.7) installation directory
/usr/lib/python3.11/site-packages/py2pack/__init__.py:230: UserWarning: Could not get setuptools information from tarball jpy-0.13.0.tar.gz: Command '/usr/bin/python3.11 setup.py -q --command-packages metaextract metaextract -o /tmp/tmpb5eaoj49 ' returned non-zero exit status 1.. Valuable information for the generation might be missing.
warnings.warn("Could not get setuptools information from tarball {}: {}. "
JAVA_HOME is set (properly?):
$ echo $JAVA_HOME
/usr/lib64/jvm/jre-openjdk
$
Installed packages (on Tumbleweed):
- python311-setuptools_scm-7.1.0-1.2.noarch
- python311-setuptools-67.8.0-1.3.noarch
- python311-py2pack-0.9.0-2.2.noarch
JAVA_HOMEis set (properly?):Installed packages (on Tumbleweed):