Skip to content

Commit 8b07c81

Browse files
committed
Include RtMidi sources as a git sub-module from fork at https://github.com/SpotlightKid/rtmidi
Signed-off-by: Christopher Arndt <[email protected]>
1 parent f43f3ab commit 8b07c81

File tree

5 files changed

+8
-3961
lines changed

5 files changed

+8
-3961
lines changed

.gitmodules

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "src/rtmidi"]
2+
path = src/rtmidi
3+
url = https://github.com/SpotlightKid/rtmidi.git
4+
branch = python-rtmidi

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ def run(self):
6969

7070
# Set up options for compiling the _rtmidi Extension
7171
if cythonize:
72-
sources = [join(SRC_DIR, "_rtmidi.pyx"), join(SRC_DIR, "RtMidi.cpp")]
72+
sources = [join(SRC_DIR, "_rtmidi.pyx"), join(SRC_DIR, "rtmidi", "RtMidi.cpp")]
7373
elif exists(join(SRC_DIR, "_rtmidi.cpp")):
7474
cythonize = lambda x: x # noqa
75-
sources = [join(SRC_DIR, "_rtmidi.cpp"), join(SRC_DIR, "RtMidi.cpp")]
75+
sources = [join(SRC_DIR, "_rtmidi.cpp"), join(SRC_DIR, "rtmidi", "RtMidi.cpp")]
7676
else:
7777
print("""\
7878
Could not import Cython. Cython >= 0.28 is required to compile the Cython
@@ -84,7 +84,7 @@ def run(self):
8484
sys.exit(1)
8585

8686
define_macros = []
87-
include_dirs = [SRC_DIR]
87+
include_dirs = [join(SRC_DIR, "rtmidi")]
8888
libraries = []
8989
library_dirs = []
9090
extra_link_args = []

0 commit comments

Comments
 (0)