pycall 0.1.0.alpha.20170329 → 0.1.0.alpha.20170403
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pycall/init.rb +5 -0
- data/lib/pycall/libpython.rb +1 -0
- data/lib/pycall/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f71e741e2100584c7f767b479215f6738a1c2766
|
4
|
+
data.tar.gz: 86c1b2baafb99c7a4252bb24837b9b43ca3dc445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16301b5fbff74a7beff8f64a1937a15868edd9666e89219f935d293a6f80f5b1aa9df64619a9a6addd0ef825349262b37aa4f19a7aff73d32a9e47140a879889
|
7
|
+
data.tar.gz: 1dc51fde23af83ae1dd7a161035f53890e4d52d08bc0ca05daf95d7cc23dc89c0b4a9ca86f687fc52a422fdf8fe269e824017b12be7a89c316cdcf90a04f23ab
|
data/lib/pycall/init.rb
CHANGED
@@ -5,6 +5,11 @@ module PyCall
|
|
5
5
|
|
6
6
|
PyCall::LibPython.Py_InitializeEx(0)
|
7
7
|
|
8
|
+
FFI::MemoryPointer.new(:pointer, 1) do |argv|
|
9
|
+
argv.write_pointer(FFI::MemoryPointer.from_string(""))
|
10
|
+
PyCall::LibPython.PySys_SetArgvEx(0, argv, 0)
|
11
|
+
end
|
12
|
+
|
8
13
|
@builtin = LibPython.PyImport_ImportModule(PYTHON_VERSION < '3.0.0' ? '__builtin__' : 'builtins')
|
9
14
|
end
|
10
15
|
|
data/lib/pycall/libpython.rb
CHANGED
@@ -176,6 +176,7 @@ module PyCall
|
|
176
176
|
attach_function :Py_GetVersion, [], :string
|
177
177
|
attach_function :Py_InitializeEx, [:int], :void
|
178
178
|
attach_function :Py_IsInitialized, [], :int
|
179
|
+
attach_function :PySys_SetArgvEx, [:int, :pointer, :int], :void
|
179
180
|
|
180
181
|
# Reference count
|
181
182
|
|
data/lib/pycall/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pycall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.alpha.
|
4
|
+
version: 0.1.0.alpha.20170403
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenta Murata
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|