1
0
forked from pool/python-pyodbc
python-pyodbc/fix_install_location_of_pyodbc.pyi.patch
Matej Cepl b39286326a Accepting request 1063686 from home:Monex:various
Update to version 4.0.35: Fixes after declined request

I've tried to get rid of the rpmlint warnings but there are still some warnings appearing and I don't know how to solve them, maybe can you help?

OBS-URL: https://build.opensuse.org/request/show/1063686
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyodbc?expand=0&rev=23
2023-02-07 21:12:21 +00:00

18 lines
615 B
Diff

Index: pyodbc-4.0.35/setup.py
===================================================================
--- pyodbc-4.0.35.orig/setup.py
+++ pyodbc-4.0.35/setup.py
@@ -94,9 +94,9 @@ def main():
'ext_modules': [Extension('pyodbc', sorted(files), **settings)],
- 'data_files': [
- ('', ['src/pyodbc.pyi']) # places pyodbc.pyi alongside pyodbc.py in site-packages
- ],
+ 'packages': [''],
+ 'package_dir': {'': 'src'},
+ 'package_data': {'': ['pyodbc.pyi']}, # places pyodbc.pyi alongside pyodbc.{platform}.{pyd|so} in site-packages
'license': 'MIT',