accuraterip-checksum.c: Port to Python 3
Accuraterip-checksum extension will be Python 3 only (JoeLametta). Co-authored-by: JoeLametta <JoeLametta@users.noreply.github.com> Signed-off-by: Andreas Oberritter <obi@saftware.de> Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
committed by
JoeLametta
parent
b2d06645af
commit
8446c290e7
16
README.md
16
README.md
@@ -27,8 +27,7 @@ We've nearly completed porting the codebase to Python 3 (Python 2 won't be suppo
|
|||||||
- [Building](#building)
|
- [Building](#building)
|
||||||
1. [Required dependencies](#required-dependencies)
|
1. [Required dependencies](#required-dependencies)
|
||||||
2. [Fetching the source code](#fetching-the-source-code)
|
2. [Fetching the source code](#fetching-the-source-code)
|
||||||
3. [Building the bundled dependencies](#building-the-bundled-dependencies)
|
3. [Finalizing the build](#finalizing-the-build)
|
||||||
4. [Finalizing the build](#finalizing-the-build)
|
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [Getting started](#getting-started)
|
- [Getting started](#getting-started)
|
||||||
- [Configuration file documentation](#configuration-file-documentation)
|
- [Configuration file documentation](#configuration-file-documentation)
|
||||||
@@ -164,19 +163,6 @@ git clone https://github.com/whipper-team/whipper.git
|
|||||||
cd whipper
|
cd whipper
|
||||||
```
|
```
|
||||||
|
|
||||||
### Building the bundled dependencies
|
|
||||||
|
|
||||||
Whipper uses and packages a slightly different version of the `accuraterip-checksum` tool:
|
|
||||||
|
|
||||||
You can edit the install path in `config.mk`
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd src
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
cd ..
|
|
||||||
```
|
|
||||||
|
|
||||||
### Finalizing the build
|
### Finalizing the build
|
||||||
|
|
||||||
Install whipper: `python2 setup.py install`
|
Install whipper: `python2 setup.py install`
|
||||||
|
|||||||
@@ -147,7 +147,13 @@ static PyMethodDef accuraterip_methods[] = {
|
|||||||
{ NULL, NULL, 0, NULL },
|
{ NULL, NULL, 0, NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
PyMODINIT_FUNC initaccuraterip(void)
|
static struct PyModuleDef accuraterip_module = {
|
||||||
|
.m_base = PyModuleDef_HEAD_INIT,
|
||||||
|
.m_name = "accuraterip",
|
||||||
|
.m_methods = accuraterip_methods,
|
||||||
|
};
|
||||||
|
|
||||||
|
PyMODINIT_FUNC PyInit_accuraterip(void)
|
||||||
{
|
{
|
||||||
Py_InitModule("accuraterip", accuraterip_methods);
|
return PyModule_Create(&accuraterip_module);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user