Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
teqp_fork_old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven Michael Pohl
teqp_fork_old
Commits
23cb4aba
Commit
23cb4aba
authored
3 years ago
by
Ian Bell
Browse files
Options
Downloads
Patches
Plain Diff
Add build script for windows
parent
d0145faf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
buildwheels.py
+35
-0
35 additions, 0 deletions
buildwheels.py
with
36 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
23cb4aba
/bld
/build
/interface/teqpversion.hpp
/pypirc
This diff is collapsed.
Click to expand it.
buildwheels.py
0 → 100644
+
35
−
0
View file @
23cb4aba
import
sys
import
os
import
subprocess
import
glob
# Check presence of twine variables or config file
userc
=
False
if
os
.
path
.
exists
(
'
pypirc
'
):
userc
=
True
else
:
for
k
in
[
'
TWINE_USERNAME
'
,
'
TWINE_PASSWORD
'
]:
if
k
not
in
os
.
environ
:
raise
KeyError
(
f
'
You must set the twine environment variable
{
k
}
'
)
for
pyver
in
[
'
3.7
'
,
'
3.8
'
,
'
3.9
'
]:
# Build the wheel if it is not already built
abbrv
=
pyver
.
replace
(
'
.
'
,
''
)
if
not
glob
.
glob
(
f
'
teqp*cp
{
abbrv
}
*.whl
'
):
condaenv
=
f
'
conda-
{
pyver
}
'
subprocess
.
check_call
(
f
'
conda create -y -n
{
condaenv
}
python=
{
pyver
}
'
,
shell
=
True
)
subprocess
.
check_call
(
f
'
conda activate
{
condaenv
}
&& python -m pip install -U pip wheel
'
,
shell
=
True
)
try
:
subprocess
.
check_call
(
f
'
conda activate
{
condaenv
}
&& python -m pip -vvv wheel .
'
,
shell
=
True
)
except
:
pass
finally
:
subprocess
.
check_call
(
f
'
conda env remove -y -n
{
condaenv
}
'
,
shell
=
True
)
# Upload wheels
if
userc
:
twine_call
=
f
'
twine upload --config-file pypirc *.whl
'
else
:
twine_call
=
f
'
twine upload *.whl
'
subprocess
.
check_call
(
twine_call
,
shell
=
True
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment