Skip to content

Commit ff1950b

Browse files
committed
use bindings module
1 parent 7f517df commit ff1950b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ What should work:
4040
What may be broken:
4141

4242
* Losing precision from Python's 64 bits Integer to Node's Number
43+
* If you're using node v0.6.x (please upgrade) you'll have to manually compile with node-gyp
4344

4445
What's to be done:
4546

@@ -54,6 +55,8 @@ What would be realy awesome:
5455

5556
## History
5657

58+
* **v0.0.4** : 2013-10-09
59+
- use the bindings module to load the native extension
5760
* **v0.0.3** : 2013-07-06
5861
- Refactor
5962
- Better type conversion & error handling

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
module.exports = require('./build/Release/binding.node');
2+
module.exports = require('bindings')('binding.node')
33

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-python",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Call python stuff from nodejs",
55
"main": "index.js",
66
"repository": {
@@ -28,5 +28,8 @@
2828
},
2929
"license": "BSD",
3030
"gypfile": true,
31-
"readmeFilename": "README.md"
31+
"readmeFilename": "README.md",
32+
"dependencies": {
33+
"bindings": "~1.1.1"
34+
}
3235
}

0 commit comments

Comments
 (0)