turbopipe 1.0.1__tar.gz → 1.0.3__tar.gz

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 turbopipe might be problematic. Click here for more details.

@@ -0,0 +1,42 @@
1
+ name: debug
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ wheels:
8
+ name: Build ${{matrix.pyver}} wheels on ${{matrix.os}}
9
+ runs-on: ${{matrix.os}}
10
+ strategy:
11
+ matrix:
12
+ os: [windows-latest]
13
+ pyver: [cp311]
14
+
15
+ env:
16
+ CIBW_BUILD: ${{matrix.pyver}}-*
17
+ CIBW_ARCHS_LINUX: auto
18
+ CIBW_ARCHS_MACOS: arm64
19
+ CIBW_ARCHS_WINDOWS: auto
20
+ CIBW_SKIP: '*musllinux* *i686* *-win32'
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: actions/setup-python@v5
25
+
26
+ - name: Prepare MSVC
27
+ if: matrix.os == 'windows-latest'
28
+ uses: bus1/cabuild/action/msdevshell@v1
29
+ with:
30
+ architecture: x64
31
+
32
+ - name: deps
33
+ run: python -m pip install build
34
+
35
+ - name: wheels
36
+ run: python -m build
37
+
38
+ - name: upload
39
+ uses: actions/upload-artifact@v3
40
+ with:
41
+ name: package
42
+ path: dist/*.whl
@@ -28,15 +28,14 @@ jobs:
28
28
  path: package/*.tar.gz
29
29
 
30
30
  wheels:
31
- name: Build ${{matrix.pyver}} wheels on ${{matrix.os}}
31
+ name: Build Python wheels on ${{matrix.os}}
32
32
  runs-on: ${{matrix.os}}
33
33
  strategy:
34
34
  matrix:
35
35
  os: [ubuntu-latest, windows-latest, macos-13, macos-14]
36
- pyver: [cp39, cp310, cp311, cp312]
37
36
 
38
37
  env:
39
- CIBW_BUILD: ${{matrix.pyver}}-*
38
+ CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*
40
39
  CIBW_ARCHS_LINUX: auto
41
40
  CIBW_ARCHS_MACOS: arm64
42
41
  CIBW_ARCHS_WINDOWS: auto
@@ -46,6 +45,12 @@ jobs:
46
45
  - uses: actions/checkout@v4
47
46
  - uses: actions/setup-python@v5
48
47
 
48
+ - name: Install MSVC
49
+ if: matrix.os == 'windows-latest'
50
+ uses: bus1/cabuild/action/msdevshell@v1
51
+ with:
52
+ architecture: x64
53
+
49
54
  - name: deps
50
55
  run: python -m pip install cibuildwheel==2.19.2
51
56
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: turbopipe
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: 🌀 Faster ModernGL Buffer inter process data transfers
5
5
  Home-page: https://brokensrc.dev
6
6
  Author-Email: Tremeschin <29046864+Tremeschin@users.noreply.github.com>
@@ -8,12 +8,14 @@ project('turbopipe', 'cpp',
8
8
 
9
9
  default_options: [
10
10
  'warning_level=3',
11
- 'cpp_std=c++11',
11
+ 'cpp_std=c++14',
12
12
  'buildtype=release',
13
13
  'optimization=3'
14
14
  ]
15
15
  )
16
16
 
17
+ message('C++ compiler: ' + meson.get_compiler('cpp').get_id())
18
+
17
19
  # ----------------------------------------------|
18
20
  # Platform flags
19
21
 
@@ -21,8 +23,6 @@ cpp_args = ['-fpermissive']
21
23
 
22
24
  if host_machine.system() == 'darwin'
23
25
  cpp_args += ['-Wno-deprecated-declarations']
24
- elif host_machine.system() == 'windows'
25
- cpp_args += ['-static', '-static-libgcc', '-static-libstdc++']
26
26
  endif
27
27
 
28
28
  # ----------------------------------------------|
@@ -12,7 +12,6 @@
12
12
  #include <thread>
13
13
  #include <mutex>
14
14
  #include <condition_variable>
15
- #include <unistd.h>
16
15
  #include <iostream>
17
16
  #include <unordered_map>
18
17
  #include <deque>
@@ -172,14 +171,19 @@ private:
172
171
  stream[file].pop_front();
173
172
  lock.unlock();
174
173
 
175
- // Optimization: Write in chunks of 4096 (RAM page size)
176
- size_t tell = 0;
177
- while (tell < work.size) {
178
- size_t chunk = min(work.size - tell, static_cast<size_t>(4096));
179
- ssize_t written = write(work.file, (char*) work.map + tell, chunk);
180
- if (written == -1) break;
181
- tell += written;
182
- }
174
+ #ifdef _WIN32
175
+ // Windows doesn't like chunked writes ??
176
+ write(work.file, (char*) work.map, work.size);
177
+ #else
178
+ // Optimization: Write in chunks of 4096 (RAM page size)
179
+ size_t tell = 0;
180
+ while (tell < work.size) {
181
+ size_t chunk = min(work.size - tell, static_cast<size_t>(4096));
182
+ size_t written = write(work.file, (char*) work.map + tell, chunk);
183
+ if (written == -1) break;
184
+ tell += written;
185
+ }
186
+ #endif
183
187
 
184
188
  // Signal work is done
185
189
  lock.lock();
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env python3
2
- __version__ = "1.0.1"
2
+ __version__ = "1.0.3"
3
3
  print(__version__)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes