-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from astrofrog/remove-compiler-argument
Remove support for (undocumented) --compiler argument
- Loading branch information
Showing
12 changed files
with
82 additions
and
191 deletions.
There are no files selected for viewing
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,5 +1,4 @@ | ||
from ._distutils_helpers import get_compiler | ||
from ._openmp_helpers import add_openmp_flags_if_available | ||
from ._setup_helpers import get_extensions, pkg_config | ||
from ._setup_helpers import get_compiler, get_extensions, pkg_config | ||
from ._utils import import_file, write_if_different | ||
from .version import version as __version__ |
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
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 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os | ||
import time | ||
|
||
from .._utils import import_file, write_if_different | ||
|
||
|
||
def test_import_file(tmpdir): | ||
filename = str(tmpdir / 'spam.py') | ||
with open(filename, 'w') as f: | ||
f.write('magic = 12345') | ||
module = import_file(filename) | ||
assert module.magic == 12345 | ||
|
||
|
||
def test_write_if_different(tmpdir): | ||
filename = str(tmpdir / 'test.txt') | ||
write_if_different(filename, b'abc') | ||
time1 = os.path.getmtime(filename) | ||
time.sleep(0.01) | ||
write_if_different(filename, b'abc') | ||
time2 = os.path.getmtime(filename) | ||
assert time2 == time1 | ||
time.sleep(0.01) | ||
write_if_different(filename, b'abcd') | ||
time3 = os.path.getmtime(filename) | ||
assert time3 > time1 |
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