How to make a private module pip installable?How do I check whether a file exists without exceptions?How to make a chain of function decorators?How to make a flat list out of list of listsHow to upgrade all Python packages with pip?How do I install pip on Windows?Is it possible to use pip to install a package from a private GitHub repository?Installing specific package versions with pipNo module named pkg_resourcesInstalling Python packages from local file system folder to virtualenv with pipHow do I install pip on macOS or OS X?
What does "see" in "the Holy See" mean?
Is there a reason why I should not use the HaveIBeenPwned API to warn users about exposed passwords?
Would all these three things have the exact same effect on the flight duration of a glider?
Melee or Ranged attacks by Monsters, no distinction in modifiers?
How to store my pliers and wire cutters on my desk?
Make AES more secure by randomising the blocks in an encrypted file
Character is called by their first initial. How do I write it?
What is the most common end of life issue for a car?
How to avoid theft of intellectual property when trying to obtain a Ph.D?
Polyhedra, Polyhedron, Polytopes and Polygon
Finding minimum time for vehicle to reach to its destination
If Trump gets impeached, how long would Pence be president?
How to check what is edible on an alien world?
Is there a wealth gap in Boston where the median net worth of white households is $247,500 while the median net worth for black families was $8?
How to tar a list of directories only if they exist
Why was Sauron preparing for war instead of trying to find the ring?
Why didn't Britain or any other European power colonise Abyssinia/Ethiopia before 1936?
Decreasing star size
The Sword in the Stone
Examples of simultaneous independent breakthroughs
How to kill my goat in Goat Simulator
Is it legal for private citizens to "impound" e-scooters?
Isolated audio without a transformer
Are the named pipe created by `mknod` and the FIFO created by `mkfifo` equivalent?
How to make a private module pip installable?
How do I check whether a file exists without exceptions?How to make a chain of function decorators?How to make a flat list out of list of listsHow to upgrade all Python packages with pip?How do I install pip on Windows?Is it possible to use pip to install a package from a private GitHub repository?Installing specific package versions with pipNo module named pkg_resourcesInstalling Python packages from local file system folder to virtualenv with pipHow do I install pip on macOS or OS X?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have python package which need to be installed to run a Django project?
I go into the python virtual environment and clone the module from git in site-packages folder inside lib.
What i need is to make that module pip intallable and installation access should be given only to specific people i.e that module should not be public to everyone.
python pip
add a comment |
I have python package which need to be installed to run a Django project?
I go into the python virtual environment and clone the module from git in site-packages folder inside lib.
What i need is to make that module pip intallable and installation access should be given only to specific people i.e that module should not be public to everyone.
python pip
Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and dopip install <folder-name>
where the<folder-name>
is the directory git created when you cloned. That should install the module to your virtual environment only.
– Cfreak
Mar 26 at 18:25
can you tell me a way using Pypi?
– Nishant Ranjan
Mar 26 at 18:29
Anything you upload to PyPi will be public. See @daniellong's answer
– Cfreak
Mar 26 at 18:49
add a comment |
I have python package which need to be installed to run a Django project?
I go into the python virtual environment and clone the module from git in site-packages folder inside lib.
What i need is to make that module pip intallable and installation access should be given only to specific people i.e that module should not be public to everyone.
python pip
I have python package which need to be installed to run a Django project?
I go into the python virtual environment and clone the module from git in site-packages folder inside lib.
What i need is to make that module pip intallable and installation access should be given only to specific people i.e that module should not be public to everyone.
python pip
python pip
edited Apr 1 at 10:17
Nishant Ranjan
asked Mar 26 at 18:20
Nishant RanjanNishant Ranjan
17 bronze badges
17 bronze badges
Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and dopip install <folder-name>
where the<folder-name>
is the directory git created when you cloned. That should install the module to your virtual environment only.
– Cfreak
Mar 26 at 18:25
can you tell me a way using Pypi?
– Nishant Ranjan
Mar 26 at 18:29
Anything you upload to PyPi will be public. See @daniellong's answer
– Cfreak
Mar 26 at 18:49
add a comment |
Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and dopip install <folder-name>
where the<folder-name>
is the directory git created when you cloned. That should install the module to your virtual environment only.
– Cfreak
Mar 26 at 18:25
can you tell me a way using Pypi?
– Nishant Ranjan
Mar 26 at 18:29
Anything you upload to PyPi will be public. See @daniellong's answer
– Cfreak
Mar 26 at 18:49
Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and do
pip install <folder-name>
where the <folder-name>
is the directory git created when you cloned. That should install the module to your virtual environment only.– Cfreak
Mar 26 at 18:25
Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and do
pip install <folder-name>
where the <folder-name>
is the directory git created when you cloned. That should install the module to your virtual environment only.– Cfreak
Mar 26 at 18:25
can you tell me a way using Pypi?
– Nishant Ranjan
Mar 26 at 18:29
can you tell me a way using Pypi?
– Nishant Ranjan
Mar 26 at 18:29
Anything you upload to PyPi will be public. See @daniellong's answer
– Cfreak
Mar 26 at 18:49
Anything you upload to PyPi will be public. See @daniellong's answer
– Cfreak
Mar 26 at 18:49
add a comment |
2 Answers
2
active
oldest
votes
Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs
There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.
The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]
. You can enforce privacy by restricting who has access to your git repository.
add a comment |
To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt
, and pip will fetch it and install it:
-e git://github.com/<user>/<package>.git#egg=<package>
(Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt
usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55363890%2fhow-to-make-a-private-module-pip-installable%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs
There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.
The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]
. You can enforce privacy by restricting who has access to your git repository.
add a comment |
Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs
There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.
The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]
. You can enforce privacy by restricting who has access to your git repository.
add a comment |
Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs
There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.
The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]
. You can enforce privacy by restricting who has access to your git repository.
Build the python package as you normally would for a public build. For helpful step-by-step instructions on that front, check out the python docs
There are a number of ways to maintain both installability and privacy. When I looked into this for my own packages I started with the suggestions at this site. This site includes instructions on how to build your own equivalent of a PyPi server.
The solution I landed on though, I feel is quite simpler. I pushed the entire package to a private git repository. You can then install using pip install git+[insert full url to your git repository here]
. You can enforce privacy by restricting who has access to your git repository.
answered Mar 26 at 18:32
Daniel LongDaniel Long
2612 silver badges11 bronze badges
2612 silver badges11 bronze badges
add a comment |
add a comment |
To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt
, and pip will fetch it and install it:
-e git://github.com/<user>/<package>.git#egg=<package>
(Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt
usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.
add a comment |
To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt
, and pip will fetch it and install it:
-e git://github.com/<user>/<package>.git#egg=<package>
(Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt
usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.
add a comment |
To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt
, and pip will fetch it and install it:
-e git://github.com/<user>/<package>.git#egg=<package>
(Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt
usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.
To make your package part of the requirements, place it where it will be accessible only by the people you want to have access, e.g. on a private github. Then you can add a line like this to any project's requirements.txt
, and pip will fetch it and install it:
-e git://github.com/<user>/<package>.git#egg=<package>
(Replace with the name of the package you are distributing.) This line is simply added to the list of simple package names that requirements.txt
usually contains. You could also replace the git download with an egg placed on a local fileshare, or whatever.
answered Mar 26 at 18:49
alexisalexis
35.8k10 gold badges68 silver badges124 bronze badges
35.8k10 gold badges68 silver badges124 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55363890%2fhow-to-make-a-private-module-pip-installable%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Don't clone into the site-packages. Just clone it to a temporary location. Then make sure you have the virtual environment activated and do
pip install <folder-name>
where the<folder-name>
is the directory git created when you cloned. That should install the module to your virtual environment only.– Cfreak
Mar 26 at 18:25
can you tell me a way using Pypi?
– Nishant Ranjan
Mar 26 at 18:29
Anything you upload to PyPi will be public. See @daniellong's answer
– Cfreak
Mar 26 at 18:49