Skip to content

Commit 231487a

Browse files
committed
Fix PyLong_FromUnsignedLong on windows, making pip install wheels work
1 parent b7104ea commit 231487a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/ExternalFunctionNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public abstract static class FromLongNode extends CExtToJavaNode {
207207

208208
@Specialization
209209
static long doInt(int value) {
210-
return value;
210+
return value & 0xFFFFFFFFL;
211211
}
212212

213213
@Specialization

graalpython/lib-python/3/venv/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,6 @@ def _setup_pip(self, context):
392392
# intended for the global Python environment
393393
cmd = [context.env_exec_cmd, '-Im', 'ensurepip', '--upgrade',
394394
'--default-pip']
395-
# Truffle change for windows bug on graalpy.
396-
if sys.platform == 'win32':
397-
os.environ['_PIP_STANDALONE_CERT'] = "."
398395
try:
399396
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
400397
except subprocess.CalledProcessError as err:

0 commit comments

Comments
 (0)