mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 22:43:41 +00:00
build: nix: Drop unused imports
Print function has been supported since Python since 2.6, so there's no need to use the import.
This commit is contained in:
committed by
Thomas Krijnen
parent
cdc5d7a04e
commit
6f6f89de0d
+1
-5
@@ -49,15 +49,11 @@
|
|||||||
# $ brew install git bison autoconf automake freetype libffi cmake #
|
# $ brew install git bison autoconf automake freetype libffi cmake #
|
||||||
# #
|
# #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess as sp
|
import subprocess as sp
|
||||||
import shutil
|
import shutil
|
||||||
import time
|
|
||||||
import tarfile
|
import tarfile
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
|
||||||
@@ -838,7 +834,7 @@ if "IfcOpenShell-Python" in targets:
|
|||||||
run([make, "-j%s" % (IFCOS_NUM_BUILD_PROCS,), "_ifcopenshell_wrapper"], cwd=python_dir)
|
run([make, "-j%s" % (IFCOS_NUM_BUILD_PROCS,), "_ifcopenshell_wrapper"], cwd=python_dir)
|
||||||
run([make, "install/local"], cwd=os.path.join(python_dir, "ifcwrap"))
|
run([make, "install/local"], cwd=os.path.join(python_dir, "ifcwrap"))
|
||||||
|
|
||||||
module_dir = os.path.dirname(run([PYTHON_EXECUTABLE, "-c", "from __future__ import print_function; import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"]))
|
module_dir = os.path.dirname(run([PYTHON_EXECUTABLE, "-c", "import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"]))
|
||||||
|
|
||||||
if get_os() != "Darwin":
|
if get_os() != "Darwin":
|
||||||
# TODO: This symbol name depends on the Python version?
|
# TODO: This symbol name depends on the Python version?
|
||||||
|
|||||||
Reference in New Issue
Block a user