lnyan commited on
Commit
8bc700c
1 Parent(s): 51ad863
PyPatchMatch/Makefile CHANGED
@@ -15,9 +15,9 @@ CXX = $(ENVIRONMENT_OPTIONS) g++
15
  CXXFLAGS = -std=c++14
16
  CXXFLAGS += -Ofast -ffast-math -w
17
  # CXXFLAGS += -g
18
- CXXFLAGS += $(shell pkg-config --cflags opencv4) -fPIC
19
  CXXFLAGS += $(INCLUDE_DIR)
20
- LDFLAGS = $(shell pkg-config --cflags --libs opencv4) -shared -fPIC
21
 
22
 
23
  CXXSOURCES = $(shell find $(SRC_DIR)/ -name "*.cpp")
 
15
  CXXFLAGS = -std=c++14
16
  CXXFLAGS += -Ofast -ffast-math -w
17
  # CXXFLAGS += -g
18
+ CXXFLAGS += $(shell pkg-config --cflags opencv) -fPIC
19
  CXXFLAGS += $(INCLUDE_DIR)
20
+ LDFLAGS = $(shell pkg-config --cflags --libs opencv) -shared -fPIC
21
 
22
 
23
  CXXSOURCES = $(shell find $(SRC_DIR)/ -name "*.cpp")
PyPatchMatch/patch_match.py CHANGED
@@ -22,7 +22,7 @@ except ImportError as e:
22
  # Otherwise, fall back to the subprocess.
23
  import subprocess
24
  print('Compiling and loading c extensions from "{}".'.format(osp.realpath(osp.dirname(__file__))))
25
- subprocess.check_call(['./travis.sh'], cwd=osp.dirname(__file__))
26
 
27
 
28
  __all__ = ['set_random_seed', 'set_verbose', 'inpaint', 'inpaint_regularity']
 
22
  # Otherwise, fall back to the subprocess.
23
  import subprocess
24
  print('Compiling and loading c extensions from "{}".'.format(osp.realpath(osp.dirname(__file__))))
25
+ subprocess.check_call("make clean && make", cwd=osp.dirname(__file__), shell=True)
26
 
27
 
28
  __all__ = ['set_random_seed', 'set_verbose', 'inpaint', 'inpaint_regularity']