-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Preserve CRLFs in patch files, otherwise they won't apply. For example, see jpegio. | ||
*/patches/** -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
--- src-original/setup.py 2021-10-15 14:26:07.000000000 +0000 | ||
+++ src/setup.py 2023-01-30 15:30:10.166631599 +0000 | ||
@@ -11,6 +11,10 @@ | ||
import platform | ||
import glob | ||
|
||
+# Chaquopy | ||
+import builtins | ||
+builtins.__NUMPY_SETUP__ = True # Prevent the compiled parts from being imported. | ||
+ | ||
import numpy | ||
|
||
incs = ["."] | ||
import platform | ||
import glob | ||
|
||
+# Chaquopy | ||
+import builtins | ||
+builtins.__NUMPY_SETUP__ = True # Prevent the compiled parts from being imported. | ||
+ | ||
import numpy | ||
|
||
incs = ["."] | ||
@@ -40,7 +44,7 @@ | ||
largs.append('-stdlib=libc++') | ||
largs.append('-mmacosx-version-min=10.9') | ||
|
||
-if arch == 'x64': | ||
+if False and arch == 'x64': # Chaquopy: let the compiler use its default number of bits. | ||
cargs.append('-m64') | ||
|
||
DIR_LIBJPEG_HEADER = pjoin(DIR_ROOT,"jpegio", "libjpeg", "include") | ||
largs.append('-stdlib=libc++') | ||
largs.append('-mmacosx-version-min=10.9') | ||
|
||
-if arch == 'x64': | ||
+if False and arch == 'x64': # Chaquopy: let the compiler use its default number of bits. | ||
cargs.append('-m64') | ||
|
||
DIR_LIBJPEG_HEADER = pjoin(DIR_ROOT,"jpegio", "libjpeg", "include") |