Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build

TclPython

This package allows the execution of Python code from a Tcl interpreter.

The Python interpreter is accessed using the tclpython3 package:

package require tclpython3
set interpreter [python3::interp new]
$interpreter exec {print("Hello World")}
puts [$interpreter eval 3/2.0]
python3::interp delete $interpreter

Installing (Linux)

1. Install Dependencies

Debian

sudo apt install python3-dev tcl-dev

Red Hat

sudo yum install python3-devel tcl-devel

2. Determine install path

Tcl package installation paths vary depending on the platform.

Either pick one that looks right from the output of the following:

echo 'foreach p $auto_path {puts $p}' | tclsh

... or create a new location, and add it to the TCLLIBPATH environment variable:

export TCLLIBPATH=$TCLLIBPATH:/path/to/my/tcl/packages

3. Compile from source

make
make test
make install INSTALL_DIR=path/from/step/2

Installing (Windows)

See msvc/README.md

About

Tcl package that provides access to a Python interpreter

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages