forked from mbuesch/awlsim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move cython logic to separate awlsim_loader module
This avoids loader magic issues Signed-off-by: Michael Buesch <m@bues.ch>
- Loading branch information
Showing
25 changed files
with
110 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
from awlsim.common.compat import * | ||
|
||
import awlsim.cython_helper as __cython | ||
|
||
if __cython.shouldUseCython(__name__): #@nocy | ||
#if True: #@cy | ||
try: | ||
from awlsim_cython.common.all_modules import * #<no-cython-patch | ||
except ImportError as e: | ||
__cython.cythonImportError(__name__, str(e)) | ||
if not __cython.shouldUseCython(__name__): #@nocy | ||
from awlsim.common.all_modules import * #@nocy | ||
from awlsim.common.blocker import * | ||
from awlsim.common.cpuspecs import * | ||
from awlsim.common.datatypehelpers import * | ||
from awlsim.common.debug import * | ||
from awlsim.common.enumeration import * | ||
from awlsim.common.exceptions import * | ||
from awlsim.common.immutable import * | ||
from awlsim.common.net import * | ||
from awlsim.common.project import * | ||
from awlsim.common.subprocess import * | ||
from awlsim.common.templates import * | ||
from awlsim.common.util import * | ||
from awlsim.common.version import * | ||
from awlsim.common.wordpacker import * |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
from awlsim.common.compat import * | ||
|
||
import awlsim.cython_helper as __cython | ||
|
||
if __cython.shouldUseCython(__name__): #@nocy | ||
#if True: #@cy | ||
try: | ||
from awlsim_cython.core.all_modules import * #<no-cython-patch | ||
except ImportError as e: | ||
__cython.cythonImportError(__name__, str(e)) | ||
if not __cython.shouldUseCython(__name__): #@nocy | ||
from awlsim.core.all_modules import * #@nocy | ||
from awlsim.core.main import * | ||
from awlsim.core.cpu import * | ||
from awlsim.core.hardware import * | ||
from awlsim.core.parser import * | ||
from awlsim.core.util import * |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
|
||
import awlsim.cython_helper as __cython | ||
|
||
if __cython.shouldUseCython(__name__): #@nocy | ||
#if True: #@cy | ||
try: | ||
from awlsim_cython.coreclient.all_modules import * #<no-cython-patch | ||
except ImportError as e: | ||
__cython.cythonImportError(__name__, str(e)) | ||
if not __cython.shouldUseCython(__name__): #@nocy | ||
from awlsim.coreclient.all_modules import * #@nocy |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
|
||
import awlsim.cython_helper as __cython | ||
|
||
if __cython.shouldUseCython(__name__): #@nocy | ||
#if True: #@cy | ||
try: | ||
from awlsim_cython.coreserver.all_modules import * #<no-cython-patch | ||
except ImportError as e: | ||
__cython.cythonImportError(__name__, str(e)) | ||
if not __cython.shouldUseCython(__name__): #@nocy | ||
from awlsim.coreserver.all_modules import * #@nocy |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
|
||
import awlsim.cython_helper as __cython | ||
|
||
if __cython.shouldUseCython(__name__): #@nocy | ||
#if True: #@cy | ||
try: | ||
from awlsim_cython.library.all_modules import * #<no-cython-patch | ||
except ImportError as e: | ||
__cython.cythonImportError(__name__, str(e)) | ||
if not __cython.shouldUseCython(__name__): #@nocy | ||
from awlsim.library.all_modules import * #@nocy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
from awlsim.common.compat import * | ||
|
||
import awlsim.cython_helper as __cython | ||
from awlsim.library.iec.iec import * | ||
|
||
if __cython.shouldUseCython(__name__): #@nocy | ||
#if True: #@cy | ||
try: | ||
from awlsim_cython.library.iec.all_modules import * #<no-cython-patch | ||
except ImportError as e: | ||
__cython.cythonImportError(__name__, str(e)) | ||
if not __cython.shouldUseCython(__name__): #@nocy | ||
from awlsim.library.iec.all_modules import * #@nocy | ||
from awlsim.library.iec.fc4_delete import * | ||
from awlsim.library.iec.fc9_eq_dt import * | ||
from awlsim.library.iec.fc12_ge_dt import * | ||
from awlsim.library.iec.fc21_len import * |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
from awlsim.common.compat import * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
|
||
import awlsim_loader.cython_helper as __cython | ||
|
||
__importmod = "awlsim.common" | ||
|
||
if __cython.shouldUseCython(__importmod): #@nocy | ||
#if True: #@cy | ||
__importcymod = __cython.cythonModuleName(__importmod) | ||
try: | ||
exec("from %s import *" % __importcymod) | ||
except ImportError as e: | ||
__cython.cythonImportError(__importcymod, str(e)) | ||
if not __cython.shouldUseCython(__importmod): #@nocy | ||
exec("from %s import *" % __importmod) #@nocy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
|
||
import awlsim_loader.cython_helper as __cython | ||
|
||
__importmod = "awlsim.core" | ||
|
||
if __cython.shouldUseCython(__importmod): #@nocy | ||
#if True: #@cy | ||
__importcymod = __cython.cythonModuleName(__importmod) | ||
try: | ||
exec("from %s import *" % __importcymod) | ||
except ImportError as e: | ||
__cython.cythonImportError(__importcymod, str(e)) | ||
if not __cython.shouldUseCython(__importmod): #@nocy | ||
exec("from %s import *" % __importmod) #@nocy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
|
||
import awlsim_loader.cython_helper as __cython | ||
|
||
__importmod = "awlsim.coreclient.client" | ||
|
||
if __cython.shouldUseCython(__importmod): #@nocy | ||
#if True: #@cy | ||
__importcymod = __cython.cythonModuleName(__importmod) | ||
try: | ||
exec("from %s import *" % __importcymod) | ||
except ImportError as e: | ||
__cython.cythonImportError(__importcymod, str(e)) | ||
if not __cython.shouldUseCython(__importmod): #@nocy | ||
exec("from %s import *" % __importmod) #@nocy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from __future__ import division, absolute_import, print_function, unicode_literals | ||
|
||
import awlsim_loader.cython_helper as __cython | ||
|
||
__importmod = "awlsim.coreserver.server" | ||
|
||
if __cython.shouldUseCython(__importmod): #@nocy | ||
#if True: #@cy | ||
__importcymod = __cython.cythonModuleName(__importmod) | ||
try: | ||
exec("from %s import *" % __importcymod) | ||
except ImportError as e: | ||
__cython.cythonImportError(__importcymod, str(e)) | ||
if not __cython.shouldUseCython(__importmod): #@nocy | ||
exec("from %s import *" % __importmod) #@nocy |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters