Commit 8f8cff83 authored by Kirill Smelkov's avatar Kirill Smelkov

X teach cython to resolve `cimport wendelin.*` starting from top-level

No need to manually do `ln -s . wendelin && touch __init__.py` to build
it anymore.
parent 54484d8e
......@@ -28,6 +28,20 @@ from subprocess import Popen, PIPE
import os
import sys
# tell cython to resolve `cimport wendelin.*` modules hierarcy starting at top-level.
# see wendelin.py for details.
# XXX hack
from Cython.Compiler.Main import Context as CyContext
cy_search_inc_dirs = CyContext.search_include_directories
def wendelin_cy_searh_in_dirs(self, qualified_name, suffix, pos, include=False, sys_path=False):
_ = qualified_name.split('.')
if len(_) >= 1 and _[0] == "wendelin":
qualified_name = '.'.join(_[1:])
return cy_search_inc_dirs(self, qualified_name, suffix, pos, include, sys_path)
CyContext.search_include_directories = wendelin_cy_searh_in_dirs
os.environ['CFLAGS'] = '-g -O0' # XXX temp
os.environ['CXXFLAGS'] = '-g -O0' # XXX temp
......
......@@ -153,6 +153,9 @@
// - fileh.mu (R:.mmaps W:.pinned)
//
// - virt_lock
//
//
// XXX note on virt_lock in pinner and deadlocks.
#include "wcfs_misc.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment