Skip to main content

python bindings for hwloc

Project description

=================================
Python 2 and 3 bindings for hwloc
=================================

I have retired and am no longer maintaining or developing this. I could work on it more if anyone is interested in using it.

If there is someone who would like to take it over, please contact me.

Example pip install from git source with virtualenv for Python2 on Fedora:

.. code:: bash
sudo dnf install python2 python2-devel python2-tools numactl-libs \
numactl-devel gettext pandoc texlive hwloc-devel hwloc-libs \
libibverbs libibverbs-devel python2-libs
virtualenv -p python2 p2hwloc
cd p2hwloc/
source bin/activate
pip install Cython Babel
pip install python2-libnuma
pip install python2-hwloc
# try it!
python2 -c "import hwloc;print hwloc.version_string()"

Example for Python3 on Fedora:

.. code:: bash
sudo dnf install python3 python3-devel python3-tools hwloc-devel \
hwloc-libs libibverbs libibverbs-devel numactl-libs numactl-devel \
gettext pandoc texlive python3-libs
virtualenv -p python3 p3hwloc
cd p3hwloc
source bin/activate
pip install Cython Babel
pip install python3-libnuma
pip install python3-hwloc
# try it!
python3 -c "import hwloc;print(hwloc.version_string())"

Debian9, Python2:

.. code:: bash
sudo apt-get update
sudo apt-get install build-essential virtualenv git libpython2.7-dev \
libnuma-dev libhwloc-dev libibverbs-dev
virtualenv -p python2 p2pip
cd p2pip
source bin/activate
pip install Cython Babel
pip install python2-libnuma
pip install python2-hwloc
# try it!
python2 -c "import hwloc;print hwloc.version_string()"

Python3 on Debian9:

.. code:: bash
sudo apt-get update
sudo apt-get install build-essential virtualenv git libpython3.5-dev \
libnuma-dev libhwloc-dev libibverbs-dev
virtualenv -p python3 p3pip
cd p3pip
source bin/activate
pip install Cython Babel
pip install python2-libnuma
pip install python2-hwloc
# try it!
python3 -c "import hwloc;print(hwloc.version_string())"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python2-hwloc-2.3.5.0.1.11.5.tar.gz (60.4 kB view details)

Uploaded Source

File details

Details for the file python2-hwloc-2.3.5.0.1.11.5.tar.gz.

File metadata

File hashes

Hashes for python2-hwloc-2.3.5.0.1.11.5.tar.gz
Algorithm Hash digest
SHA256 842728aebdd5c6b67f439070bea8f8c7d8bb5ea36a11a4d8d44357be8874cdcd
MD5 79febb39ac07e063bb1e2b20069218b5
BLAKE2b-256 052b2c8b09821649a2634cc18e915c3a8b014f70d04997f8d5e6a31f3c55c88f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page