Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
aa0e7711
Kaydet (Commit)
aa0e7711
authored
May 27, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added 'install_headers' command to install C/C++ header files.
üst
847a9968
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
__init__.py
Lib/distutils/command/__init__.py
+1
-0
install_headers.py
Lib/distutils/command/install_headers.py
+40
-0
No files found.
Lib/distutils/command/__init__.py
Dosyayı görüntüle @
aa0e7711
...
@@ -12,6 +12,7 @@ __all__ = ['build',
...
@@ -12,6 +12,7 @@ __all__ = ['build',
'build_scripts'
,
'build_scripts'
,
'install'
,
'install'
,
'install_lib'
,
'install_lib'
,
'install_headers'
,
'install_scripts'
,
'install_scripts'
,
'install_data'
,
'install_data'
,
'clean'
,
'clean'
,
...
...
Lib/distutils/command/install_headers.py
0 → 100644
Dosyayı görüntüle @
aa0e7711
"""distutils.command.install_headers
Implements the Distutils 'install_headers' command, to install C/C++ header
files to the Python include directory."""
# created 2000/05/26, Greg Ward
__revision__
=
"$Id$"
from
distutils.core
import
Command
class
install_headers
(
Command
):
description
=
"install C/C++ header files"
user_options
=
[(
'install-dir='
,
'd'
,
"directory to install header files to"
),
]
def
initialize_options
(
self
):
self
.
install_dir
=
None
def
finalize_options
(
self
):
self
.
set_undefined_options
(
'install'
,
(
'install_headers'
,
'install_dir'
))
def
run
(
self
):
headers
=
self
.
distribution
.
headers
if
not
headers
:
return
self
.
mkpath
(
self
.
install_dir
)
for
header
in
headers
:
self
.
copy_file
(
header
,
self
.
install_dir
)
# run()
# class install_headers
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