Hello community,

here is the log from the commit of package nml for openSUSE:Factory checked in 
at 2015-05-22 09:52:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nml (Old)
 and      /work/SRC/openSUSE:Factory/.nml.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nml"

Changes:
--------
--- /work/SRC/openSUSE:Factory/nml/nml.changes  2015-05-18 22:29:51.000000000 
+0200
+++ /work/SRC/openSUSE:Factory/.nml.new/nml.changes     2015-05-22 
09:52:05.000000000 +0200
@@ -1,0 +2,15 @@
+Wed May 20 08:42:46 UTC 2015 - [email protected]
+
+- Add python3-setuptools requires: nml makes use of pkg_resources
+  during runtime
+  from openttd-opengfx build log:
+  /usr/bin/nmlc -c -p DOS --grf ogfxt_toyland.grf ogfxt_toyland.nml
+  Traceback (most recent call last):
+     File "/usr/bin/nmlc", line 5, in <module>
+      from pkg_resources import load_entry_point
+        ImportError: No module named 'pkg_resources'
+- Manually install the nml directory into python3_sitelib: python
+  setup.py forgets to install this, resulting in nmlc not being able
+  to be started (failed to import nml).
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nml.spec ++++++
--- /var/tmp/diff_new_pack.QiJN25/_old  2015-05-22 09:52:06.000000000 +0200
+++ /var/tmp/diff_new_pack.QiJN25/_new  2015-05-22 09:52:06.000000000 +0200
@@ -34,6 +34,7 @@
 BuildRequires:  python3-setuptools
 Requires:       python3-Pillow
 Requires:       python3-ply
+Requires:       python3-setuptools
 Provides:       nmlc = %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
@@ -45,9 +46,13 @@
 
 %build
 make
+make extensions
 
 %install
 python3 setup.py install --skip-build --root=%{buildroot} --prefix=%{_prefix}
+# The actual python code is not being installed?!?
+mkdir -p %{buildroot}%{python3_sitelib}/nml
+cp -rp nml/* %{buildroot}%{python3_sitelib}/nml/
 
 %check
 make test
@@ -57,6 +62,6 @@
 %doc docs/*.txt
 %{_bindir}/nmlc
 %{python3_sitearch}/*
-%{python3_sitearch}/%{name}-%{version}-py%{py3_ver}.egg-info
+%{python3_sitelib}/%{name}/
 
 %changelog


Reply via email to