mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 11:44:46 +02:00
Update build script
This commit is contained in:
@@ -76,18 +76,8 @@ def create_build_env():
|
|||||||
class Env:
|
class Env:
|
||||||
pass
|
pass
|
||||||
env = Env()
|
env = Env()
|
||||||
|
|
||||||
# Import the documentation build module.
|
|
||||||
env.fmt_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
env.fmt_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
sys.path.insert(0, os.path.join(env.fmt_dir, 'doc'))
|
|
||||||
import build
|
|
||||||
|
|
||||||
env.build_dir = 'build'
|
env.build_dir = 'build'
|
||||||
env.versions = build.versions
|
|
||||||
|
|
||||||
# Virtualenv and repos are cached to speed up builds.
|
|
||||||
build.create_build_env(os.path.join(env.build_dir, 'virtualenv'))
|
|
||||||
|
|
||||||
env.fmt_repo = Git(os.path.join(env.build_dir, 'fmt'))
|
env.fmt_repo = Git(os.path.join(env.build_dir, 'fmt'))
|
||||||
return env
|
return env
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user