numpy-quaddtype 0.1.0__cp311-cp311-win_amd64.whl → 0.2.1__cp311-cp311-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of numpy-quaddtype might be problematic. Click here for more details.

@@ -1,14 +1,3 @@
1
- """""" # start delvewheel patch
2
- def _delvewheel_patch_1_11_1():
3
- import os
4
- if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'numpy_quaddtype.libs'))):
5
- os.add_dll_directory(libs_dir)
6
-
7
-
8
- _delvewheel_patch_1_11_1()
9
- del _delvewheel_patch_1_11_1
10
- # end delvewheel patch
11
-
12
1
  from ._quaddtype_main import (
13
2
  QuadPrecision,
14
3
  QuadPrecDType,
@@ -0,0 +1,30 @@
1
+ Copyright (c) 2022, NumPy Developers.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are
6
+ met:
7
+
8
+ * Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+
11
+ * Redistributions in binary form must reproduce the above
12
+ copyright notice, this list of conditions and the following
13
+ disclaimer in the documentation and/or other materials provided
14
+ with the distribution.
15
+
16
+ * Neither the name of the NumPy Developers nor the names of any
17
+ contributors may be used to endorse or promote products derived
18
+ from this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,157 @@
1
+ Metadata-Version: 2.1
2
+ Name: numpy_quaddtype
3
+ Version: 0.2.1
4
+ Summary: Quad (128-bit) float dtype for numpy
5
+ Author-Email: Swayam Singh <singhswayam008@gmail.com>
6
+ License: Copyright (c) 2022, NumPy Developers.
7
+ All rights reserved.
8
+
9
+ Redistribution and use in source and binary forms, with or without
10
+ modification, are permitted provided that the following conditions are
11
+ met:
12
+
13
+ * Redistributions of source code must retain the above copyright
14
+ notice, this list of conditions and the following disclaimer.
15
+
16
+ * Redistributions in binary form must reproduce the above
17
+ copyright notice, this list of conditions and the following
18
+ disclaimer in the documentation and/or other materials provided
19
+ with the distribution.
20
+
21
+ * Neither the name of the NumPy Developers nor the names of any
22
+ contributors may be used to endorse or promote products derived
23
+ from this software without specific prior written permission.
24
+
25
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
+
37
+ Requires-Python: >=3.10.0
38
+ Requires-Dist: numpy
39
+ Provides-Extra: test
40
+ Requires-Dist: pytest; extra == "test"
41
+ Requires-Dist: pytest-run-parallel; extra == "test"
42
+ Description-Content-Type: text/markdown
43
+
44
+ # Numpy-QuadDType
45
+
46
+ A cross-platform Quad (128-bit) float Data-Type for NumPy.
47
+
48
+ ## Installation
49
+
50
+ ```bash
51
+ pip install numpy
52
+ pip install numpy-quaddtype
53
+ ```
54
+
55
+ ## Usage
56
+
57
+ ```python
58
+ import numpy as np
59
+ from numpy_quaddtype import QuadPrecDType, QuadPrecision
60
+
61
+ # using sleef backend (default)
62
+ np.array([1,2,3], dtype=QuadPrecDType())
63
+ np.array([1,2,3], dtype=QuadPrecDType("sleef"))
64
+
65
+ # using longdouble backend
66
+ np.array([1,2,3], dtype=QuadPrecDType("longdouble"))
67
+ ```
68
+
69
+ ## Installation from source
70
+
71
+ #### Prerequisites
72
+
73
+ - **gcc/clang**
74
+ - **CMake** (≥3.15)
75
+ - **Python 3.10+**
76
+ - **Git**
77
+
78
+ ### Linux/Unix/macOS
79
+
80
+ Building the `numpy-quaddtype` package:
81
+
82
+ ```bash
83
+ # setup the virtual env
84
+ python3 -m venv temp
85
+ source temp/bin/activate
86
+
87
+ # Install the package
88
+ pip install numpy pytest
89
+
90
+ # To build without QBLAS (default for MSVC)
91
+ # export CFLAGS="-DDISABLE_QUADBLAS"
92
+ # export CXXFLAGS="-DDISABLE_QUADBLAS"
93
+
94
+ python -m pip install . -v
95
+
96
+ # Run the tests
97
+ cd ..
98
+ python -m pytest
99
+ ```
100
+
101
+ ### Windows
102
+
103
+ #### Prerequisites
104
+
105
+ - **Visual Studio 2017 or later** (with MSVC compiler)
106
+ - **CMake** (≥3.15)
107
+ - **Python 3.10+**
108
+ - **Git**
109
+
110
+ #### Step-by-Step Installation
111
+
112
+ 1. **Setup Development Environment**
113
+
114
+ Open a **Developer Command Prompt for VS** or **Developer PowerShell for VS** to ensure MSVC is properly configured.
115
+
116
+ 2. **Setup Python Environment**
117
+
118
+ ```powershell
119
+ # Create and activate virtual environment
120
+ python -m venv numpy_quad_env
121
+ .\numpy_quad_env\Scripts\Activate.ps1
122
+
123
+ # Install build dependencies
124
+ pip install -U pip
125
+ pip install numpy pytest ninja meson
126
+ ```
127
+
128
+ 3. **Set Environment Variables**
129
+
130
+ ```powershell
131
+ # Note: QBLAS is disabled on Windows due to MSVC compatibility issues
132
+ $env:CFLAGS = "/DDISABLE_QUADBLAS"
133
+ $env:CXXFLAGS = "/DDISABLE_QUADBLAS"
134
+ ```
135
+
136
+ 4. **Build and Install numpy-quaddtype**
137
+
138
+ ```powershell
139
+ # Build and install the package
140
+ python -m pip install . -v
141
+ ```
142
+
143
+ 5. **Test Installation**
144
+
145
+ ```powershell
146
+ # Run tests
147
+ pytest -s tests/
148
+ ```
149
+
150
+ 6. **QBLAS Disabled**: QuadBLAS optimization is automatically disabled on Windows builds due to MSVC compatibility issues. This is handled by the `-DDISABLE_QUADBLAS` compiler flag.
151
+
152
+ 7. **Visual Studio Version**: The instructions assume Visual Studio 2022. For other versions, adjust the generator string:
153
+
154
+ - VS 2019: `"Visual Studio 16 2019"`
155
+ - VS 2017: `"Visual Studio 15 2017"`
156
+
157
+ 8. **Architecture**: The instructions are for x64. For x86 builds, change `-A x64` to `-A Win32`.
@@ -0,0 +1,7 @@
1
+ numpy_quaddtype-0.2.1.dist-info/METADATA,sha256=X65l3HpDugrB5E_HWKGrloMpLyWIjoaJl1cX384fFSQ,4653
2
+ numpy_quaddtype-0.2.1.dist-info/WHEEL,sha256=JdLTWhc73oJ-lqTBYGgiVontr_vhzwzbpAOin_2bxTI,85
3
+ numpy_quaddtype-0.2.1.dist-info/LICENSE,sha256=nQvogdRSuRW36bqrc8M5o4mV-NjNIClAmAwZr970158,1568
4
+ numpy_quaddtype/_quaddtype_main.cp311-win_amd64.pyd,sha256=yXggkTo3FyppQbMINBvPzhLGhQtD1R-MoCY8WMdVDLU,910336
5
+ numpy_quaddtype/_quaddtype_main.cp311-win_amd64.lib,sha256=ZnDA4mIjc07XKwRMUjolr2Ukg-QBZ2KlnNiNsVIaHaY,2156
6
+ numpy_quaddtype/__init__.py,sha256=XQp9mkhPrbVbM0wHkrgbJEr8tbeipKbxf47UY8XcyuQ,1519
7
+ numpy_quaddtype-0.2.1.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- Version: 1.11.1
2
- Arguments: ['C:\\hostedtoolcache\\windows\\Python\\3.13.7\\x64\\Scripts\\delvewheel', 'repair', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-hguza28w\\cp311-win_amd64\\repaired_wheel', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-hguza28w\\cp311-win_amd64\\built_wheel\\numpy_quaddtype-0.1.0-cp311-cp311-win_amd64.whl', '--add-path', 'C:\\sleef\\bin']
@@ -1,170 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: numpy_quaddtype
3
- Version: 0.1.0
4
- Summary: Quad (128-bit) float dtype for numpy
5
- Author-Email: Swayam Singh <singhswayam008@gmail.com>
6
- Requires-Python: >=3.10.0
7
- Requires-Dist: numpy
8
- Provides-Extra: test
9
- Requires-Dist: pytest; extra == "test"
10
- Requires-Dist: pytest-run-parallel; extra == "test"
11
- Description-Content-Type: text/markdown
12
-
13
- # Numpy-QuadDType
14
-
15
- A cross-platform Quad (128-bit) float Data-Type for NumPy.
16
-
17
- ## Installation
18
-
19
- ```bash
20
- pip install numpy
21
- pip install numpy-quaddtype
22
- ```
23
-
24
- ## Usage
25
-
26
- ```python
27
- import numpy as np
28
- from numpy_quaddtype import QuadPrecDType, QuadPrecision
29
-
30
- # using sleef backend (default)
31
- np.array([1,2,3], dtype=QuadPrecDType())
32
- np.array([1,2,3], dtype=QuadPrecDType("sleef"))
33
-
34
- # using longdouble backend
35
- np.array([1,2,3], dtype=QuadPrecDType("longdouble"))
36
- ```
37
-
38
- ## Installation from source
39
-
40
- The code needs the quad precision pieces of the sleef library, which is not available on most systems by default, so we have to generate that first. Choose the appropriate section below based on your operating system.
41
-
42
- ### Linux/Unix/macOS
43
-
44
- The below assumes one has the required pieces to build sleef (cmake and libmpfr-dev), and that one is in the package directory locally.
45
-
46
- ```bash
47
- git clone --branch 3.8 https://github.com/shibatch/sleef.git
48
- cd sleef
49
- cmake -S . -B build -DSLEEF_BUILD_QUAD:BOOL=ON -DSLEEF_BUILD_SHARED_LIBS:BOOL=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
50
- cmake --build build/ --clean-first -j
51
- cd ..
52
- ```
53
-
54
- Building the `numpy-quaddtype` package from locally installed sleef:
55
-
56
- ```bash
57
- export SLEEF_DIR=$PWD/sleef/build
58
- export LIBRARY_PATH=$SLEEF_DIR/lib
59
- export C_INCLUDE_PATH=$SLEEF_DIR/include
60
- export CPLUS_INCLUDE_PATH=$SLEEF_DIR/include
61
-
62
- # setup the virtual env
63
- python3 -m venv temp
64
- source temp/bin/activate
65
-
66
- # Install the package
67
- pip install meson-python numpy pytest
68
-
69
- export LDFLAGS="-Wl,-rpath,$SLEEF_DIR/lib -fopenmp -latomic -lpthread"
70
- export CFLAGS="-fPIC"
71
- export CXXFLAGS="-fPIC"
72
-
73
- # To build without QBLAS (default for MSVC)
74
- # export CFLAGS="-fPIC -DDISABLE_QUADBLAS"
75
- # export CXXFLAGS="-fPIC -DDISABLE_QUADBLAS"
76
-
77
- python -m pip install . -v --no-build-isolation -Cbuilddir=build -C'compile-args=-v'
78
-
79
- # Run the tests
80
- cd ..
81
- python -m pytest
82
- ```
83
-
84
- ### Windows
85
-
86
- #### Prerequisites
87
-
88
- - **Visual Studio 2017 or later** (with MSVC compiler)
89
- - **CMake** (≥3.15)
90
- - **Python 3.10+**
91
- - **Git**
92
-
93
- #### Step-by-Step Installation
94
-
95
- 1. **Setup Development Environment**
96
-
97
- Open a **Developer Command Prompt for VS** or **Developer PowerShell for VS** to ensure MSVC is properly configured.
98
-
99
- 2. **Clone and Build SLEEF**
100
-
101
- ```powershell
102
- # Clone SLEEF library
103
- git clone --branch 3.8 https://github.com/shibatch/sleef.git
104
- cd sleef
105
-
106
- # Configure with CMake for Windows
107
- cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DSLEEF_BUILD_QUAD:BOOL=ON -DSLEEF_BUILD_SHARED_LIBS:BOOL=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
108
-
109
- # Build and install SLEEF
110
- cmake --build build --config Release
111
- cmake --install build --prefix "C:/sleef" --config Release
112
-
113
- cd ..
114
- ```
115
-
116
- 3. **Setup Python Environment**
117
-
118
- ```powershell
119
- # Create and activate virtual environment
120
- python -m venv numpy_quad_env
121
- .\numpy_quad_env\Scripts\Activate.ps1
122
-
123
- # Install build dependencies
124
- pip install -U pip
125
- pip install meson-python numpy pytest ninja meson
126
- ```
127
-
128
- 4. **Set Environment Variables**
129
-
130
- ```powershell
131
- # Set up paths and compiler flags
132
- $env:INCLUDE = "C:/sleef/include;$env:INCLUDE"
133
- $env:LIB = "C:/sleef/lib;$env:LIB"
134
- $env:PATH = "C:/sleef/bin;$env:PATH"
135
-
136
- # Note: QBLAS is disabled on Windows due to MSVC compatibility issues
137
- $env:CFLAGS = "/IC:/sleef/include /DDISABLE_QUADBLAS"
138
- $env:CXXFLAGS = "/IC:/sleef/include /DDISABLE_QUADBLAS"
139
- $env:LDFLAGS = "C:/sleef/lib/sleef.lib C:/sleef/lib/sleefquad.lib"
140
- ```
141
-
142
- 5. **Build and Install numpy-quaddtype**
143
-
144
- ```powershell
145
- # Ensure submodules are initialized
146
- git submodule update --init --recursive
147
-
148
- # Build and install the package
149
- python -m pip install . -v --no-build-isolation -Cbuilddir=build -C'compile-args=-v'
150
- ```
151
-
152
- 6. **Test Installation**
153
-
154
- ```powershell
155
- # Run tests
156
- pytest -s tests/
157
- ```
158
-
159
- 1. **QBLAS Disabled**: QuadBLAS optimization is automatically disabled on Windows builds due to MSVC compatibility issues. This is handled by the `-DDISABLE_QUADBLAS` compiler flag.
160
-
161
- 2. **Visual Studio Version**: The instructions assume Visual Studio 2022. For other versions, adjust the generator string:
162
- - VS 2019: `"Visual Studio 16 2019"`
163
- - VS 2017: `"Visual Studio 15 2017"`
164
-
165
- 3. **Architecture**: The instructions are for x64. For x86 builds, change `-A x64` to `-A Win32`.
166
-
167
- 4. **Alternative SLEEF Location**: If you prefer to install SLEEF elsewhere, update all path references accordingly.
168
-
169
- #### Windows Troubleshooting
170
- - **Link errors**: Verify that `sleef.lib` and `sleefquad.lib` exist in `C:/sleef/lib/`
@@ -1,8 +0,0 @@
1
- numpy_quaddtype/_quaddtype_main.cp311-win_amd64.lib,sha256=tkg0x97TZDBXwVajlo7KEuOC5sZalvF1oDctkJIJntU,2156
2
- numpy_quaddtype/_quaddtype_main.cp311-win_amd64.pyd,sha256=lBDdh0bMl1_oi0rKHMSbwZY0K30anSElruI1cpI_NxE,146944
3
- numpy_quaddtype/__init__.py,sha256=1wSrRSwIW8PTcW_YLmvwZsNgCIsZvDqcu5WucYIoSHc,1856
4
- numpy_quaddtype-0.1.0.dist-info/DELVEWHEEL,sha256=B13EpP5d3D47Jk4CcVGxexbMPFsHP0of0jX50bYPtlw,396
5
- numpy_quaddtype-0.1.0.dist-info/METADATA,sha256=vE3pMJIWXPPflvYHU_ln5McTvzkTqxTsB5xHMXK648A,4889
6
- numpy_quaddtype-0.1.0.dist-info/RECORD,,
7
- numpy_quaddtype-0.1.0.dist-info/WHEEL,sha256=JdLTWhc73oJ-lqTBYGgiVontr_vhzwzbpAOin_2bxTI,85
8
- numpy_quaddtype.libs/sleefquad-d5670be147816406bcf0cbc42fa078ee.dll,sha256=1WcL4UeBZAa88MvEL6B47poVhLbdgUWaOSVcgeD1vwo,6423040