Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
8e295cd6
Kaydet (Commit)
8e295cd6
authored
Haz 07, 2006
tarafından
Barış Metin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
each build should reset environment variables. an important fix... we should build some (many?)
packages again.
üst
feb6620c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
variables.py
pisi/actionsapi/variables.py
+6
-0
config.py
pisi/config.py
+5
-0
No files found.
pisi/actionsapi/variables.py
Dosyayı görüntüle @
8e295cd6
...
...
@@ -13,6 +13,7 @@
# Standard Python Modules
from
os
import
getenv
from
os
import
environ
from
copy
import
deepcopy
# Pisi-Core Modules
import
pisi.context
as
ctx
...
...
@@ -22,6 +23,10 @@ import pisi.context as ctx
def
exportFlags
():
'''General flags used in actions API.'''
# first reset environ
environ
=
{}
environ
=
deepcopy
(
ctx
.
config
.
environ
)
# Build systems depend on these environment variables. That is why
# we export them instead of using as (instance) variables.
values
=
ctx
.
config
.
values
...
...
@@ -31,6 +36,7 @@ def exportFlags():
environ
[
'LDFLAGS'
]
=
values
.
build
.
ldflags
environ
[
'USER_LDFLAGS'
]
=
values
.
build
.
ldflags
environ
[
'JOBS'
]
=
values
.
build
.
jobs
class
Env
(
object
):
'''General environment variables used in actions API'''
...
...
pisi/config.py
Dosyayı görüntüle @
8e295cd6
...
...
@@ -18,6 +18,7 @@ regular PISI configurations.
"""
import
os
from
copy
import
deepcopy
import
gettext
__trans
=
gettext
.
translation
(
'pisi'
,
fallback
=
True
)
...
...
@@ -59,6 +60,10 @@ class Config(object):
ctx
.
ui
.
warning
(
_
(
'Destination directory
%
s does not exist. Creating it.'
)
%
self
.
destdir
)
os
.
makedirs
(
self
.
destdir
)
# get the initial environment variables. this is needed for
# build process.
self
.
environ
=
deepcopy
(
os
.
environ
)
def
get_option
(
self
,
opt
):
if
self
.
options
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment