diff --git a/.github/workflows/Builder.yml b/.github/workflows/Builder.yml index 09168bf2..7fd84e7f 100644 --- a/.github/workflows/Builder.yml +++ b/.github/workflows/Builder.yml @@ -90,11 +90,9 @@ jobs: cp py4pd.m_amd64 py4pd\ cp py4pd.m_amd64 test\py4pd\py4pd.m_amd64 - - name: Run tests + - name: Tests shell: cmd - run: | - cd test - python3 runTests.py + run: cd test && python3 runTests.py - name: Upload Object ZIP uses: actions/upload-artifact@v3 diff --git a/Makefile b/Makefile index 9d1c9945..6fc727c2 100755 --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ ifeq (MINGW,$(findstring MINGW,$(uname))) PYTHON_PATH := $(shell cat pythonpath.txt) NUMPY_INCLUDE := $(shell cat numpyincludes.txt) PYTHON_DLL := $(PYTHON_PATH)/python311.dll - cflags = -l dl -I '$(PYTHON_INCLUDE)' -I '$(NUMPY_INCLUDE)' -Wno-cast-function-type -Wno-unused-variable - ldlibs = '$(PYTHON_DLL)' -lwinpthread -Xlinker --export-all-symbols + cflags = -I '$(PYTHON_INCLUDE)' -I '$(NUMPY_INCLUDE)' -Wno-cast-function-type -Wno-unused-variable + ldlibs = '$(PYTHON_DLL)' -lwinpthread # =================================== Linux ===================================== else ifeq (Linux,$(findstring Linux,$(uname))) diff --git a/src/py4pd.c b/src/py4pd.c index b4d0d16f..01a52d6c 100644 --- a/src/py4pd.c +++ b/src/py4pd.c @@ -1142,3 +1142,7 @@ void py4pd_setup(void) { gensym("detach"), 0); #endif } + +#ifdef __WIN64 + __declspec(dllexport) void py4pd_setup(void); +#endif \ No newline at end of file