Skip to content

Commit b465d58

Browse files
Preparing readme for release.
1 parent 2a88c27 commit b465d58

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

README.md

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Python3Generator [![Build Status](https://travis-ci.org/juliendelplanque/Python3Generator.svg?branch=master)](https://travis-ci.org/juliendelplanque/Python3Generator)
1+
# Python3Generator
2+
[![Build Status](https://travis-ci.org/juliendelplanque/Python3Generator.svg?branch=master)](https://travis-ci.org/juliendelplanque/Python3Generator)
3+
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/juliendelplanque/Python3Generator/master/LICENSE)
4+
[![Pharo version](https://img.shields.io/badge/Pharo-6.1-%23aac9ff.svg)](https://pharo.org/download)
5+
[![Pharo version](https://img.shields.io/badge/Pharo-7.0-%23aac9ff.svg)](https://pharo.org/download)
6+
[![Pharo version](https://img.shields.io/badge/Pharo-8.0-%23aac9ff.svg)](https://pharo.org/download)
7+
28
A toolkit to generate Python 3 source code from Pharo.
39

410
## Install
@@ -11,7 +17,7 @@ Metacello new
1117
load
1218
```
1319

14-
Once Python3Generator is installed in your image, you need to configure [Python3Generator](https://github.com/juliendelplanque/Python3Generator) to use the Python interpreter you prefer. My advise is to use the FFI interpreter using: `P3GInterpreter useFFIInterpreter`. If your `python3` binary is located in a standard path in your file system, it should be fine, else you can manually set the path to `python3` binary using for example: `P3GInterpreter current pathToPython: '/usr/bin/python3'`.
20+
If your `python3` binary is located in a standard path in your file system, it should be fine, else you can manually set the path to `python3` binary using for example: `P3GInterpreter current pathToPython: '/usr/bin/python3'`.
1521

1622
## Version management
1723

@@ -28,10 +34,6 @@ Thus, it should be safe to depend on a fixed major version and moving minor vers
2834
## Examples
2935
### Getting os information in `/tmp/os.json` file
3036
```
31-
"Use and initialize the FFI interpreter."
32-
P3GInterpreter useFFIInterpreter.
33-
P3GInterpreter current pathToPython: '/usr/bin/python3'.
34-
3537
instr := P3GInstructionsList new.
3638
3739
json := 'json' asP3GIdentifier.
@@ -53,10 +55,6 @@ instr execute.
5355

5456
### Open a Qt window using PyQt4
5557
```
56-
"Use and initialize the FFI interpreter."
57-
P3GInterpreter useFFIInterpreter.
58-
P3GInterpreter current pathToPython: '/usr/bin/python3'.
59-
6058
"instructions will hold the instructions of the program we are going to build."
6159
instructions := P3GInstructionsList new.
6260
@@ -88,13 +86,9 @@ instructions execute.
8886
```
8987

9088
### Plot an histogram with MatplotLib
91-
Remark to really use MatplotLib from Pharo, I created the [MatplotLibBridge](https://github.com/juliendelplanque/MatplotLibBridge) project which provides an higher lever interface.
89+
> Remark: To really use MatplotLib from Pharo, I created the [MatplotLibBridge](https://github.com/juliendelplanque/MatplotLibBridge) project which provides an higher lever interface.
9290
9391
```
94-
"Use and initialize the FFI interpreter."
95-
P3GInterpreter useFFIInterpreter.
96-
P3GInterpreter current pathToPython: '/usr/bin/python3'.
97-
9892
numpy := 'numpy' asP3GIdentifier.
9993
mlab := 'matplotlib' asP3GIdentifier=>#mlab.
10094
pyplot := 'matplotlib' asP3GIdentifier=>#pyplot.

0 commit comments

Comments
 (0)