Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
ab1ba559
Commit
ab1ba559
authored
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
added C example
parent
07a727fc
dev
main
No related merge requests found
Pipeline
#245
passed with stages
in 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cextern/helloworld.c
+15
-0
cextern/helloworld.c
install_local.sh
+1
-1
install_local.sh
setup.py
+6
-1
setup.py
with
22 additions
and
2 deletions
+22
-2
cextern/helloworld.c
0 → 100644
+
15
-
0
View file @
ab1ba559
// Simple C program to display "Hello World"
// Header file for input output functions
#include
<stdio.h>
// main function -
// where the execution of program begins
int
main
()
{
// prints hello world
printf
(
"Hello World"
);
return
0
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
install_local.sh
+
1
-
1
View file @
ab1ba559
#!/usr/bin/env bash
#!/usr/bin/env bash
rm
-rf
build
rm
-rf
build
rm
-rf
dist
rm
-rf
dist
#
python setup.py build_ext
--inplace
python setup.py build_ext
#python setup.py install
#python setup.py install
python setup.py sdist
python setup.py sdist
pip
install
dist/
*
.tar.gz
--force-reinstall
pip
install
dist/
*
.tar.gz
--force-reinstall
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
6
-
1
View file @
ab1ba559
...
@@ -37,4 +37,9 @@ setuptools.setup(
...
@@ -37,4 +37,9 @@ setuptools.setup(
# 'astropy',
# 'astropy',
# ],
# ],
python_requires
=
'>=3.9'
,
python_requires
=
'>=3.9'
,
)
ext_modules
=
[
setuptools
.
Extension
(
name
=
"csst_proto.cext.helloworld"
,
sources
=
[
"cextern/helloworld.c"
]
)
]
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets