Include setup.py and __init__.py in archive for pip

So that the wrapper library can be installed with `pip install
<archive>`. The setup.py is Windows-specific, but CI only
produces Windows builds so that's not currently an issue.

The __init__.py re-exports the .pyd module so that the .pyd and
.dll can be installed into a subdirectory of site-packages for
neatness, and so that the installed module isn't just to work
around pip install being unable to install a pyd with no package.
This commit is contained in:
Daniel Nunes
2019-10-21 18:07:55 +01:00
committed by Oliver Hamlet
parent 937a36a5ae
commit ffd62f9e0c
6 changed files with 112 additions and 17 deletions
+2 -2
View File
@@ -11,10 +11,10 @@ A Python module that wraps libloot, generated by [pybind11](https://github.com/p
Snapshot builds are available on [Bintray](https://bintray.com/loot/snapshots/loot-api-python). The snapshot build archives are named like so:
```
loot_api_python-<short revision ID>-python<python version>-win<architecture>.7z
loot_api_python-<short revision ID>-python<python version>-win<architecture>.zip
```
For example `loot_api_python-94de368-python2.7-win32.7z` was built using the revision with shortened commit ID `94de368`.
For example `loot_api_python-94de368-python2.7-win32.zip` was built using the revision with shortened commit ID `94de368`.
## Documentation