Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
a0e11a4c
Commit
a0e11a4c
authored
Dec 20, 2015
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reordered imports and adjusted spacing
parent
c508f7f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
setup.py
setup.py
+7
-4
No files found.
setup.py
View file @
a0e11a4c
#!/usr/bin/env python
import
os
import
re
from
distutils.core
import
setup
from
distutils.extension
import
Extension
from
Cython.Build
import
cythonize
import
os
import
re
def
get_version
():
return
re
.
search
(
r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)"""
,
open
(
'blink/__init__.py'
)
.
read
())
.
group
(
'version'
)
def
find_packages
(
toplevel
):
return
[
directory
.
replace
(
os
.
path
.
sep
,
'.'
)
for
directory
,
subdirs
,
files
in
os
.
walk
(
toplevel
)
if
'__init__.py'
in
files
]
def
list_resources
(
directory
,
destination_directory
):
return
[(
dir
.
replace
(
directory
,
destination_directory
),
[
os
.
path
.
join
(
dir
,
file
)
for
file
in
files
])
for
dir
,
subdirs
,
files
in
os
.
walk
(
directory
)]
setup
(
name
=
"blink"
,
version
=
get_version
(),
author
=
"AG Projects"
,
...
...
@@ -36,5 +39,5 @@ setup(name = "blink",
ext_modules
=
cythonize
([
Extension
(
name
=
"blink.screensharing._rfb"
,
sources
=
[
"blink/screensharing/_rfb.pyx"
],
libraries
=
[
"vncclient"
])]),
data_files
=
list_resources
(
'resources'
,
destination_directory
=
'share/blink'
),
scripts
=
[
'bin/blink'
]
)
)
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