Skip to content

Commit 1ce6e3a

Browse files
committed
refactor: rename header guards so we don't abuse the PYTHON_ namespace
1 parent d4b92e2 commit 1ce6e3a

20 files changed

Lines changed: 64 additions & 36 deletions

‎cairo_layout.pickle‎

126 Bytes
Binary file not shown.

‎docker/emscripten/Dockerfile‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM python:3.10.6-bullseye
2+
3+
SHELL ["/bin/bash", "-c"]
4+
5+
COPY setup.py.diff.txt /setup.py.diff
6+
7+
RUN set -ex \
8+
&& echo "Installing flex and bison" \
9+
&& apt-get update \
10+
&& apt-get -y install flex bison \
11+
&& echo "Installing Emscripten" \
12+
&& git clone https://github.com/emscripten-core/emsdk.git \
13+
&& cd emsdk \
14+
&& ./emsdk install latest \
15+
&& ./emsdk activate latest \
16+
&& source "/emsdk/emsdk_env.sh" \
17+
&& cd .. \
18+
&& echo "Cloning igraph repositories" \
19+
&& git clone https://github.com/igraph/python-igraph.git \
20+
&& cd python-igraph/vendor/source \
21+
&& git clone https://github.com/igraph/igraph.git \
22+
&& cd ../.. \
23+
&& echo "Applying patch to setup.py" \
24+
&& git apply < /setup.py.diff \
25+
&& echo "Installing pyodide-build" \
26+
&& pip install pyodide-build \
27+
&& echo "Building igraph wheel" \
28+
&& pyodide build

‎src/_igraph/arpackobject.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
2121
*/
2222

23-
#ifndef PYTHON_ARPACKOBJECT_H
24-
#define PYTHON_ARPACKOBJECT_H
23+
#ifndef IGRAPHMODULE_ARPACKOBJECT_H
24+
#define IGRAPHMODULE_ARPACKOBJECT_H
2525

2626
#include "preamble.h"
2727

‎src/_igraph/bfsiter.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
2121
*/
2222

23-
#ifndef PYTHON_BFSITER_H
24-
#define PYTHON_BFSITER_H
23+
#ifndef IGRAPHMODULE_BFSITER_H
24+
#define IGRAPHMODULE_BFSITER_H
2525

2626
#include "preamble.h"
2727

‎src/_igraph/common.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
2121
*/
2222

23-
#ifndef PYTHON_COMMON_H
24-
#define PYTHON_COMMON_H
23+
#ifndef IGRAPHMODULE_COMMON_H
24+
#define IGRAPHMODULE_COMMON_H
2525

2626
#include <stdbool.h>
2727

‎src/_igraph/convert.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
/** \defgroup python_interface_conversion Converting between Python and igraph data types
2626
* \ingroup python_interface */
2727

28-
#ifndef PYTHON_CONVERT_H
29-
#define PYTHON_CONVERT_H
28+
#ifndef IGRAPHMODULE_CONVERT_H
29+
#define IGRAPHMODULE_CONVERT_H
3030

3131
#include "preamble.h"
3232

‎src/_igraph/dfsiter.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
2121
*/
2222

23-
#ifndef PYTHON_DFSITER_H
24-
#define PYTHON_DFSITER_H
23+
#ifndef IGRAPHMODULE_DFSITER_H
24+
#define IGRAPHMODULE_DFSITER_H
2525

2626
#include "preamble.h"
2727

‎src/_igraph/edgeobject.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
2121
*/
2222

23-
#ifndef PYTHON_EDGEOBJECT_H
24-
#define PYTHON_EDGEOBJECT_H
23+
#ifndef IGRAPHMODULE_EDGEOBJECT_H
24+
#define IGRAPHMODULE_EDGEOBJECT_H
2525

2626
#include "preamble.h"
2727

‎src/_igraph/edgeseqobject.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
2121
*/
2222

23-
#ifndef PYTHON_EDGESEQOBJECT_H
24-
#define PYTHON_EDGESEQOBJECT_H
23+
#ifndef IGRAPHMODULE_EDGESEQOBJECT_H
24+
#define IGRAPHMODULE_EDGESEQOBJECT_H
2525

2626
#include "preamble.h"
2727

‎src/_igraph/error.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
2121
*/
2222

23-
#ifndef PYTHON_ERROR_H
24-
#define PYTHON_ERROR_H
23+
#ifndef IGRAPHMODULE_ERROR_H
24+
#define IGRAPHMODULE_ERROR_H
2525

2626
#include "preamble.h"
2727

0 commit comments

Comments
 (0)