File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
* 3. run ./runner
8
8
*
9
9
* Use Docker to compile for a specific Python version:
10
- * `docker run --rm -ti -v "$PWD:/x" -w "/x" python:3.6.8 g++ -o runner runner.cpp -fPIC -I/usr/local/include/python3.6m -I/usr/local/include/python3.6m -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -L/usr/local/lib -lpython3.6m -lpthread -ldl -lutil -lm -Xlinker -export-dynamic`
10
+ * cd build/
11
+ * `docker run --rm -ti -v "$PWD/../:/x" -w "/x/build/" python:3.6.8 g++ -o runner ../runner.cpp -fPIC -I/usr/local/include/python3.6m -I/usr/local/include/python3.6m -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -L/usr/local/lib -lpython3.6m -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -I. -L. -lAES`
11
12
* To test that:
12
- * `docker run --rm -ti -v "$PWD:/x" -w "/x" python:3.6.8 ./runner`
13
+ * `python3 -m pip install --user utmp`
14
+ * `docker run --rm -ti -v "$PWD:/x" -w "/x" -v "$HOME/.local/lib/python3.8/:/root/.local/lib/python3.6:ro" python:3.6.8 ./runner`
13
15
*
14
16
* Ixtalo, 29.07.2020
15
17
*
You can’t perform that action at this time.
0 commit comments