Name | libuuu JSON |
Version |
1.5.182.post1
JSON |
| download |
home_page | None |
Summary | A python wraper for libuuu. |
upload_time | 2024-12-19 10:01:20 |
maintainer | None |
docs_url | None |
author | NXP |
requires_python | >=3.9 |
license | BSD-3-Clause |
keywords |
nxp
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
|
coveralls test coverage |
No coveralls.
|
# libuuu
A python wrapper for `libuuu`.
Supported Python versions: 3.9 or newer.
## Manual Build and Installation
To build the project you first need to build libuuu dynamic libraries for your
operating system, or download them. In this section, manual build is described.
### Building libraries
We first install `vcpkg` which is a C++ library manager for Windows, Linux, and MacOS. Then we set some necessary environment variables, how you set them depends on your operating system, but it is basically the same.
#### Linux & MacOS
> Downloading vcpkg and setting up environment variables
```bash
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
export VCPKG_ROOT=$(pwd)
export PATH=$VCPKG_ROOT:$PATH
./bootstrap-vcpkg.sh
```
> Dependencies on Linux (Ubuntu)
```bash
sudo apt-get install gcc cmake ninja-build autotools-dev automake autoconf libudev-dev
```
> Dependencies on MacOS
```bash
brew install ninja cmake autoconf automake libtool
```
> Build
```bash
cd ../wrapper
cmake --preset=unix #Needs to have vcpkg in PATH & VCPKG_ROOT set.
cmake --build build
```
#### Windows
> Downloading vcpkg and setting up environment variables
```powershell
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
$env:VCPKG_ROOT = $PWD.Path
$env:Path = $env:VCPKG_ROOT + ';' + $env:Path
./bootstrap-vcpkg.bat
```
> Dependencies on Windows
```powershell
choco install ninja llvm cmake
```
> Build
```powershell
cmake --preset=windows -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build
```
### Building python package
We just need to create folder `./wrapper/libuuu/lib` and move the dynamic libraries there.
```bash
mkdir ./libuuu/lib
cp build/*.dll ./libuuu/lib # *.so for Linux, *.dylib for MacOS
pip install -e .
```
Raw data
{
"_id": null,
"home_page": null,
"name": "libuuu",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "NXP",
"author": "NXP",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/5e/8d/3253e7157b34847ad6740f7539e96bbb6c3c98f5f03adfcfd9a18ac11f1d/libuuu-1.5.182.post1.tar.gz",
"platform": null,
"description": "# libuuu\r\n\r\nA python wrapper for `libuuu`.\r\n\r\nSupported Python versions: 3.9 or newer.\r\n\r\n## Manual Build and Installation\r\n\r\nTo build the project you first need to build libuuu dynamic libraries for your\r\noperating system, or download them. In this section, manual build is described.\r\n\r\n### Building libraries\r\n\r\nWe first install `vcpkg` which is a C++ library manager for Windows, Linux, and MacOS. Then we set some necessary environment variables, how you set them depends on your operating system, but it is basically the same. \r\n\r\n#### Linux & MacOS\r\n> Downloading vcpkg and setting up environment variables\r\n```bash\r\ngit clone https://github.com/microsoft/vcpkg.git \r\ncd vcpkg\r\nexport VCPKG_ROOT=$(pwd)\r\nexport PATH=$VCPKG_ROOT:$PATH\r\n./bootstrap-vcpkg.sh\r\n```\r\n\r\n> Dependencies on Linux (Ubuntu)\r\n```bash\r\nsudo apt-get install gcc cmake ninja-build autotools-dev automake autoconf libudev-dev\r\n```\r\n> Dependencies on MacOS \r\n```bash\r\nbrew install ninja cmake autoconf automake libtool\r\n```\r\n> Build\r\n```bash\r\ncd ../wrapper\r\ncmake --preset=unix #Needs to have vcpkg in PATH & VCPKG_ROOT set.\r\ncmake --build build\r\n```\r\n\r\n#### Windows\r\n> Downloading vcpkg and setting up environment variables\r\n```powershell\r\ngit clone https://github.com/microsoft/vcpkg.git \r\ncd vcpkg\r\n$env:VCPKG_ROOT = $PWD.Path \r\n$env:Path = $env:VCPKG_ROOT + ';' + $env:Path\r\n./bootstrap-vcpkg.bat\r\n```\r\n> Dependencies on Windows\r\n```powershell\r\nchoco install ninja llvm cmake\r\n```\r\n> Build \r\n```powershell\r\ncmake --preset=windows -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++\r\ncmake --build build\r\n```\r\n\r\n### Building python package\r\nWe just need to create folder `./wrapper/libuuu/lib` and move the dynamic libraries there.\r\n\r\n```bash\r\nmkdir ./libuuu/lib\r\ncp build/*.dll ./libuuu/lib # *.so for Linux, *.dylib for MacOS\r\npip install -e .\r\n```\r\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "A python wraper for libuuu.",
"version": "1.5.182.post1",
"project_urls": {
"Homepage": "https://github.com/nxp-imx/mfgtools/wrapper"
},
"split_keywords": [
"nxp"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dc52b3dfe9c499e22e96094cd4ba5e93e4607a4df68356796204eead971c8f89",
"md5": "136621fe2a2cd23ae545ab0ddcc93f19",
"sha256": "4142f9b819b738dc8460ac8927925e02771a1a12a0f91dccc2ad3b808d0d5138"
},
"downloads": -1,
"filename": "libuuu-1.5.182.post1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "136621fe2a2cd23ae545ab0ddcc93f19",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 18348686,
"upload_time": "2024-12-19T10:01:13",
"upload_time_iso_8601": "2024-12-19T10:01:13.477521Z",
"url": "https://files.pythonhosted.org/packages/dc/52/b3dfe9c499e22e96094cd4ba5e93e4607a4df68356796204eead971c8f89/libuuu-1.5.182.post1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5e8d3253e7157b34847ad6740f7539e96bbb6c3c98f5f03adfcfd9a18ac11f1d",
"md5": "e41af91ec45f7f369cf9458f8b9fc36d",
"sha256": "1dfd06c21af32902f9c3e397437f72b86e3199b93fd4780209d0ae948391494f"
},
"downloads": -1,
"filename": "libuuu-1.5.182.post1.tar.gz",
"has_sig": false,
"md5_digest": "e41af91ec45f7f369cf9458f8b9fc36d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 18219561,
"upload_time": "2024-12-19T10:01:20",
"upload_time_iso_8601": "2024-12-19T10:01:20.960930Z",
"url": "https://files.pythonhosted.org/packages/5e/8d/3253e7157b34847ad6740f7539e96bbb6c3c98f5f03adfcfd9a18ac11f1d/libuuu-1.5.182.post1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-19 10:01:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nxp-imx",
"github_project": "mfgtools",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"appveyor": true,
"lcname": "libuuu"
}